mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
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:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user