Fixed cursor in interlaced modes on S3 Vision864/Trio32/Trio64.

This commit is contained in:
TomW 2014-07-09 22:12:59 +01:00
commit 0c2efae9c3
3 changed files with 29 additions and 0 deletions

View file

@ -1725,6 +1725,9 @@ void s3_hwcursor_draw(svga_t *svga, int displine)
int xx;
int offset = svga->hwcursor_latch.x - svga->hwcursor_latch.xoff;
if (svga->interlace && svga->hwcursor_oddeven)
svga->hwcursor_latch.addr += 16;
// pclog("HWcursor %i %i\n", svga->hwcursor_latch.x, svga->hwcursor_latch.y);
for (x = 0; x < 64; x += 16)
{
@ -1747,6 +1750,8 @@ void s3_hwcursor_draw(svga_t *svga, int displine)
}
svga->hwcursor_latch.addr += 4;
}
if (svga->interlace && !svga->hwcursor_oddeven)
svga->hwcursor_latch.addr += 16;
}