Changeset 37 in Thomson for tools/gfx2mo5/libraw2mo5.c


Ignore:
Timestamp:
04/03/2013 22:24:01 (7 years ago)
Author:
pulkomandy
Message:

Allow to use the glitched mode, sometimes it's useful.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gfx2mo5/libraw2mo5.c

    r35 r37  
    1111#include <string.h>
    1212
    13 unsigned char *raw2mo5(unsigned char *input)
     13unsigned char *raw2mo5(unsigned char *input, bool fixup)
    1414{
    1515  unsigned char *tmpBuffer;
     
    5858                }
    5959
     60                if (fore == 255) fore = 7;
    6061                if (fore != 255) {
    6162                        previous &= 0xF;
     
    7071                // are both FORME or both FOND, else we get an ugly glitch on the
    7172                // EFGJ033 Gate Array MO5!
    72                 if(oldlfo == !(tmpBuffer[(y*320+x)/8] & 0x80))
     73                if(fixup && oldlfo == !(tmpBuffer[(y*320+x)/8] & 0x80))
    7374                {
    7475                        previous = (previous >> 4) | (previous << 4);
Note: See TracChangeset for help on using the changeset viewer.