Skip to content

Commit

Permalink
Force interlace to be off at 1280x1024
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Feb 8, 2024
1 parent 3e098b1 commit da3203a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/video/vid_c&t_69000.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ chips_69000_recalctimings(svga_t *svga)

svga->interlace = !!(svga->crtc[0x70] & 0x80);

if (svga->dispend == 2002 && svga->hdisp == 1024) {
svga->dispend = 1280;
if (svga->hdisp == 1280 && svga->dispend == 1024) {
svga->interlace = 0;
}

switch (chips->ext_regs[0x81] & 0xF) {
Expand Down Expand Up @@ -1541,8 +1541,10 @@ chips_69000_write_ext_reg(chips_69000_t* chips, uint8_t val)
case 0xA7:
chips->ext_regs[chips->ext_index] = val;
chips->svga.hwcursor.y = chips->ext_regs[0xA6] | (val & 7) << 8;
if (chips->ext_regs[0xA7] & 0x80)
chips->svga.hwcursor.y = -chips->svga.hwcursor.y;
if (chips->ext_regs[0xA7] & 0x80){
chips->svga.hwcursor.yoff = chips->svga.hwcursor.y;
chips->svga.hwcursor.y = 0;
}
break;
case 0xC8:
case 0xC9:
Expand Down

0 comments on commit da3203a

Please sign in to comment.