Force interlace to be off at 1280x1024

This commit is contained in:
Cacodemon345
2024-02-09 00:20:59 +06:00
parent 3e098b190e
commit da3203a6c1

View File

@@ -747,8 +747,8 @@ chips_69000_recalctimings(svga_t *svga)
svga->interlace = !!(svga->crtc[0x70] & 0x80); svga->interlace = !!(svga->crtc[0x70] & 0x80);
if (svga->dispend == 2002 && svga->hdisp == 1024) { if (svga->hdisp == 1280 && svga->dispend == 1024) {
svga->dispend = 1280; svga->interlace = 0;
} }
switch (chips->ext_regs[0x81] & 0xF) { switch (chips->ext_regs[0x81] & 0xF) {
@@ -1541,8 +1541,10 @@ chips_69000_write_ext_reg(chips_69000_t* chips, uint8_t val)
case 0xA7: case 0xA7:
chips->ext_regs[chips->ext_index] = val; chips->ext_regs[chips->ext_index] = val;
chips->svga.hwcursor.y = chips->ext_regs[0xA6] | (val & 7) << 8; chips->svga.hwcursor.y = chips->ext_regs[0xA6] | (val & 7) << 8;
if (chips->ext_regs[0xA7] & 0x80) if (chips->ext_regs[0xA7] & 0x80){
chips->svga.hwcursor.y = -chips->svga.hwcursor.y; chips->svga.hwcursor.yoff = chips->svga.hwcursor.y;
chips->svga.hwcursor.y = 0;
}
break; break;
case 0xC8: case 0xC8:
case 0xC9: case 0xC9: