And another.

This commit is contained in:
OBattler
2020-10-18 00:19:47 +02:00
parent f2a46d7700
commit dc24e1394c

View File

@@ -689,7 +689,7 @@ void tgui_hwcursor_draw(svga_t *svga, int displine)
svga->hwcursor_latch.addr += pitch; svga->hwcursor_latch.addr += pitch;
for (xx = 0; xx < svga->hwcursor.xsize; xx++) { for (xx = 0; xx < svga->hwcursor.xsize; xx++) {
byte = (xx >> 3); byte = svga->hwcursor_latch.addr + (xx >> 3);
bit = (7 - xx); bit = (7 - xx);
dat[0] = (svga->vram[byte] >> bit) & 0x01; /* AND */ dat[0] = (svga->vram[byte] >> bit) & 0x01; /* AND */
dat[1] = (svga->vram[(pitch >> 1) + byte] >> bit) & 0x01; /* XOR */ dat[1] = (svga->vram[(pitch >> 1) + byte] >> bit) & 0x01; /* XOR */