Skip to content

Commit

Permalink
vid_cl54xx: Revert changes made to special blanking mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Jan 11, 2024
1 parent 2afbe3b commit 2b3ebf9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/video/vid_cl54xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1950,18 +1950,14 @@ gd54xx_recalctimings(svga_t *svga)
and the actual blanking comes from the display enable signal. */
/* Start blanking at the first character clock after the last active one. */
svga->hblankstart = svga->crtc[1] + 1;
svga->hblank_end_val = (svga->htotal + 5) & 0xff;
svga->hblank_end_val = (svga->htotal + 5) & 0x3f;
/* In this mode, the dots per clock are always 8 or 16, never 9 or 18. */
if (!svga->scrblank && svga->attr_palette_enable)
svga->dots_per_clock = (svga->seqregs[1] & 8) ? 16 : 8;
/* No overscan in this mode. */
svga->hblank_overscan = 0;
/* Also make sure vertical blanking starts on display end. */
svga->vblankstart = svga->dispend;

/* Account for horizontal overflow bits. */
svga->hblank_end_val += (svga->crtc[0x1a] & 0x30) << 2;
svga->hblank_end_len = 0x100;
}

if (!(svga->gdcreg[6] & 1) && !(svga->attrregs[0x10] & 1)) { /*Text mode*/
Expand Down

0 comments on commit 2b3ebf9

Please sign in to comment.