Matrox Mystique: Force window resizing

This commit is contained in:
Cacodemon345
2023-12-21 14:40:32 +06:00
parent 765a1f524b
commit 2d6ffe081e

View File

@@ -717,10 +717,12 @@ mystique_out(uint16_t addr, uint8_t val, void *priv)
mystique->crtcext_idx = val;
break;
case 0x3df:
if (mystique->crtcext_idx < 6)
mystique->crtcext_regs[mystique->crtcext_idx] = val;
if (mystique->crtcext_idx == 1)
svga->dpms = !!(val & 0x30);
if (mystique->crtcext_idx < 6) {
mystique->crtcext_regs[mystique->crtcext_idx] = val;
svga_recalctimings(&mystique->svga);
}
if (mystique->crtcext_idx == 4) {
if (svga->gdcreg[6] & 0xc) {
/*64k banks*/
@@ -952,6 +954,8 @@ mystique_recalctimings(svga_t *svga)
svga->fb_only = svga->packed_chain4;
svga->disable_blink = (svga->bpp > 4);
reset_screen_size();
video_force_resize_set_monitor(1, svga->monitor_index);
#if 0
pclog("PackedChain4=%d, chain4=%x, fast=%x, bit6 attrreg10=%02x, bits 5-6 gdcreg5=%02x, extmode=%02x.\n", svga->packed_chain4, svga->chain4, svga->fast, svga->attrregs[0x10] & 0x40, svga->gdcreg[5] & 0x60, mystique->pci_regs[0x41] & 1, mystique->crtcext_regs[3] & CRTCX_R3_MGAMODE);
#endif