Fixed Hercules InColor text mode wraparound, fixes #3520.

This commit is contained in:
OBattler
2023-08-10 16:47:12 +02:00
parent 9f4ae7030e
commit a2b7a175a9

View File

@@ -749,8 +749,8 @@ text_line(incolor_t *dev, uint16_t ca)
for (uint8_t x = 0; x < dev->crtc[1]; x++) {
if (dev->ctrl & 8) {
chr = dev->vram[(dev->ma << 1) & 0xfff];
attr = dev->vram[((dev->ma << 1) + 1) & 0xfff];
chr = dev->vram[(dev->ma << 1) & 0x3fff];
attr = dev->vram[((dev->ma << 1) + 1) & 0x3fff];
} else
chr = attr = 0;