From aed2b179ab233c32ce4ab96da2eb2c9a2c6a7151 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 13 Apr 2021 15:26:12 -0300 Subject: [PATCH] Add DPMS support to Mystique --- src/video/vid_mga.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/vid_mga.c b/src/video/vid_mga.c index 5a1d7a4b5..8ac16f2d6 100644 --- a/src/video/vid_mga.c +++ b/src/video/vid_mga.c @@ -691,6 +691,8 @@ mystique_out(uint16_t addr, uint8_t val, void *p) 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 < 4) { svga->fullchange = changeframecount; svga_recalctimings(svga);