Skip to content

Commit

Permalink
Back out display and cursor skew changes from commit ed30e17. Fixes o…
Browse files Browse the repository at this point in the history
…ffset

display on some SVGA cards.
  • Loading branch information
sarah-walker-pcem committed Feb 8, 2021
1 parent 9687a85 commit 55e84c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vid_svga.c
Expand Up @@ -322,7 +322,7 @@ void svga_recalctimings(svga_t *svga)
if (svga->crtc[9] & 0x20) svga->vblankstart |= 0x200;
svga->vblankstart++;

svga->hdisp = svga->crtc[1] - ((svga->crtc[5] & 0x60) >> 5);
svga->hdisp = svga->crtc[1];
svga->hdisp++;

svga->htotal = svga->crtc[0];
Expand Down Expand Up @@ -660,9 +660,9 @@ void svga_poll(void *p)
changeframecount = svga->interlace ? 3 : 2;
svga->vslines = 0;

if (svga->interlace && svga->oddeven) svga->ma = svga->maback = svga->ma_latch + (svga->rowoffset << 1) + ((svga->crtc[5] & 0x60) >> 5);
else svga->ma = svga->maback = svga->ma_latch + ((svga->crtc[5] & 0x60) >> 5);
svga->ca = ((svga->crtc[0xe] << 8) | svga->crtc[0xf]) + ((svga->crtc[0xb] & 0x60) >> 5) + svga->ca_adj;
if (svga->interlace && svga->oddeven) svga->ma = svga->maback = svga->ma_latch + (svga->rowoffset << 1);
else svga->ma = svga->maback = svga->ma_latch;
svga->ca = ((svga->crtc[0xe] << 8) | svga->crtc[0xf]) + svga->ca_adj;

svga->ma <<= 2;
svga->maback <<= 2;
Expand Down

0 comments on commit 55e84c3

Please sign in to comment.