Skip to content

Commit

Permalink
Matrox Mystique: Force window resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Dec 21, 2023
1 parent 765a1f5 commit 2d6ffe0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/video/vid_mga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d6ffe0

Please sign in to comment.