Fix the colors in the PCjr 640x400x2bpp mode.

This commit is contained in:
OBattler
2024-07-13 18:37:40 +02:00
parent c728f6cbf5
commit fbf1420126

View File

@@ -353,7 +353,7 @@ vid_poll(void *priv)
break;
case 0x03: /*640x200x4*/
for (x = 0; x < pcjr->crtc[1]; x++) {
dat = (pcjr->vram[((pcjr->ma << 1) & mask) + offset] << 8) | pcjr->vram[((pcjr->ma << 1) & mask) + offset + 1];
dat = (pcjr->vram[((pcjr->ma << 1) & mask) + offset + 1] << 8) | pcjr->vram[((pcjr->ma << 1) & mask) + offset];
pcjr->ma++;
for (uint8_t c = 0; c < 8; c++) {
chr = (dat >> 7) & 1;