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 99686cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/vid_mga.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ mystique_recalctimings(svga_t *svga)
if (mystique->type >= MGA_1064SG) {
/*Mystique, unlike most SVGA cards, allows display start to take
effect mid-screen*/
svga->ma_latch <<= 1;
svga->ma_latch = (((mystique->crtcext_regs[0] & CRTCX_R0_STARTADD_MASK) << 16) | (svga->crtc[0xc] << 8) | svga->crtc[0xd]) << 1;
/* Only change maback so the new display start will take effect on the next
horizontal retrace. */
if (svga->ma_latch != mystique->ma_latch_old) {
Expand Down

0 comments on commit 99686cf

Please sign in to comment.