Fix GB graphics prefix output

The output of using the prefix '`' was inverted: The MSB was placed
before the LSB. Now, the LSB are placed first, allowing a direct copy
to VRAM.
This commit is contained in:
AntonioND
2016-07-01 19:54:44 +01:00
parent 330a39596c
commit fbb825af3b

View File

@@ -97,7 +97,7 @@ ascii2bin(char *s)
while (*s != '\0') { while (*s != '\0') {
c = convertfunc(*s++); c = convertfunc(*s++);
result = result * 2 + ((c & 1) << 8) + ((c & 2) >> 1); result = result * 2 + ((c & 2) << 7) + (c & 1);
} }
} else { } else {
while (*s != '\0') while (*s != '\0')