Fixed it again.

This commit is contained in:
OBattler
2021-09-14 02:29:34 +02:00
parent 49b508caab
commit 3cd6518f11

View File

@@ -1885,9 +1885,9 @@ s3_hwcursor_convert_addr(svga_t *svga)
if ((svga->bpp == 8) && ((svga->gdcreg[5] & 0x60) >= 0x20) && (svga->crtc[0x45] & 0x10)) {
real_addr = (svga->hwcursor_latch.addr & 0xfffff000);
if ((svga->gdcreg[5] & 0x60) >= 0x40)
return (real_addr | ((svga->hwcursor_latch.addr & 0x200) << 2)) + 0x600;
return (real_addr | ((svga->hwcursor_latch.addr & 0x200) << 2)) + 0x600 + (svga->hwcursor_latch.addr & 0x1ff);
else if ((svga->gdcreg[5] & 0x60) == 0x20)
return (real_addr | ((svga->hwcursor_latch.addr & 0x300) << 2)) + 0x300;
return (real_addr | ((svga->hwcursor_latch.addr & 0x300) << 2)) + 0x300 + (svga->hwcursor_latch.addr & 0xff);
else
return svga->hwcursor_latch.addr;
} else