Skip to content

Commit

Permalink
Mystique: Fix flickering display on Direct3D
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Dec 24, 2023
1 parent 69ae4b4 commit 7701caf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/vid_mga.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ mystique_recalctimings(svga_t *svga)
svga->hdisp_time = svga->hdisp;
svga->rowoffset = svga->crtc[0x13] | ((mystique->crtcext_regs[0] & CRTCX_R0_OFFSET_MASK) << 4);
svga->lut_map = 1;
svga->ma_latch = ((mystique->crtcext_regs[0] & CRTCX_R0_STARTADD_MASK) << 16) | (svga->crtc[0xc] << 8) | svga->crtc[0xd];

if (mystique->pci_regs[0x41] & (OPTION_INTERLEAVE >> 8)) {
svga->rowoffset <<= 1;
Expand Down

0 comments on commit 7701caf

Please sign in to comment.