Skip to content

Commit da3203a

Browse files
committed
Force interlace to be off at 1280x1024
1 parent 3e098b1 commit da3203a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/video/vid_c&t_69000.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ chips_69000_recalctimings(svga_t *svga)
747747

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

750-
if (svga->dispend == 2002 && svga->hdisp == 1024) {
751-
svga->dispend = 1280;
750+
if (svga->hdisp == 1280 && svga->dispend == 1024) {
751+
svga->interlace = 0;
752752
}
753753

754754
switch (chips->ext_regs[0x81] & 0xF) {
@@ -1541,8 +1541,10 @@ chips_69000_write_ext_reg(chips_69000_t* chips, uint8_t val)
15411541
case 0xA7:
15421542
chips->ext_regs[chips->ext_index] = val;
15431543
chips->svga.hwcursor.y = chips->ext_regs[0xA6] | (val & 7) << 8;
1544-
if (chips->ext_regs[0xA7] & 0x80)
1545-
chips->svga.hwcursor.y = -chips->svga.hwcursor.y;
1544+
if (chips->ext_regs[0xA7] & 0x80){
1545+
chips->svga.hwcursor.yoff = chips->svga.hwcursor.y;
1546+
chips->svga.hwcursor.y = 0;
1547+
}
15461548
break;
15471549
case 0xC8:
15481550
case 0xC9:

0 commit comments

Comments
 (0)