And another fix, to not break interlaced modes.

This commit is contained in:
OBattler
2021-09-14 02:17:57 +02:00
parent b8bc115c7f
commit be22d67ed6

View File

@@ -1907,8 +1907,6 @@ s3_hwcursor_draw(svga_t *svga, int displine)
uint32_t fg, bg;
uint32_t real_addr;
real_addr = s3_hwcursor_convert_addr(svga);
switch (svga->bpp)
{
case 15:
@@ -1960,6 +1958,8 @@ s3_hwcursor_draw(svga_t *svga, int displine)
if (svga->interlace && svga->hwcursor_oddeven)
svga->hwcursor_latch.addr += 16;
real_addr = s3_hwcursor_convert_addr(svga);
for (x = 0; x < 64; x += 16)
{
dat[0] = (svga->vram[real_addr & svga->vram_display_mask] << 8) | svga->vram[(real_addr + 1) & svga->vram_display_mask];