From 63419b0b29b06134fcd2ae603d32efbeccbc619e Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 14 Apr 2021 17:43:59 -0300 Subject: [PATCH] Add DPMS support to Trident TGUI --- src/video/vid_tgui9440.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/vid_tgui9440.c b/src/video/vid_tgui9440.c index a23fe789d..9dd5fe081 100644 --- a/src/video/vid_tgui9440.c +++ b/src/video/vid_tgui9440.c @@ -322,6 +322,11 @@ void tgui_out(uint16_t addr, uint8_t val, void *p) break; case 0x3CF: + if (svga->gdcaddr == 0x23) + { + svga->dpms = !!(val & 0x03); + svga_recalctimings(svga); + } if (tgui->type == TGUI_9400CXI && svga->gdcaddr >= 16 && svga->gdcaddr < 32) { old = tgui->ext_gdc_regs[svga->gdcaddr & 15];