mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +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:
1 parent
330a39596c
commit
fbb825af3b
1 file changed
+1
-1
+1
-1
@@ -97,7 +97,7 @@ ascii2bin(char *s)
|
||||
|
||||
while (*s != '\0') {
|
||||
c = convertfunc(*s++);
|
||||
result = result * 2 + ((c & 1) << 8) + ((c & 2) >> 1);
|
||||
result = result * 2 + ((c & 2) << 7) + (c & 1);
|
||||
}
|
||||
} else {
|
||||
while (*s != '\0')
|
||||
|
||||
Reference in new issue
Block a user