From e315c20a66061cc7c6442b42166bcbd4a2fac0a7 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Fri, 13 Sep 2024 15:40:58 +0200 Subject: [PATCH] bugfix: Refresh RTG panel when CPU changes are modified - The 24-bit addressing option blocks RTG cards from being used. When it's disabled, the RTG panel should refresh, to enable any relevant widgets - Fixed navigation in RTG panel (the VRAM slider could not be accessed) --- src/osdep/gui/PanelCPU.cpp | 1 + src/osdep/gui/PanelRTG.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osdep/gui/PanelCPU.cpp b/src/osdep/gui/PanelCPU.cpp index 6fb9bd33..5500402d 100644 --- a/src/osdep/gui/PanelCPU.cpp +++ b/src/osdep/gui/PanelCPU.cpp @@ -282,6 +282,7 @@ class CPUActionListener : public gcn::ActionListener RefreshPanelCPU(); RefreshPanelRAM(); RefreshPanelChipset(); + RefreshPanelRTG(); } }; diff --git a/src/osdep/gui/PanelRTG.cpp b/src/osdep/gui/PanelRTG.cpp index b6965973..8d578eef 100644 --- a/src/osdep/gui/PanelRTG.cpp +++ b/src/osdep/gui/PanelRTG.cpp @@ -190,7 +190,7 @@ void InitPanelRTG(const config_category& category) sldGfxmem->setForegroundColor(gui_foreground_color); sldGfxmem->setMarkerLength(marker_length); sldGfxmem->setStepLength(1); - sldGfxmem->setId("Gfxmem"); + sldGfxmem->setId("sldGfxmem"); sldGfxmem->addActionListener(rtg_action_listener); chkRtgMatchDepth = new gcn::CheckBox("Match host and RTG color depth if possible");