From 31448561dc1065f4a1dde5863615d36282e9ed9b Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 13 Oct 2025 19:50:16 +0300 Subject: [PATCH] Enable autoswitch when switching or selecting RTG boards. --- od-win32/win32gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 361b2371..0360a494 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -11971,8 +11971,10 @@ static INT_PTR CALLBACK ExpansionDlgProc (HWND hDlg, UINT msg, WPARAM wParam, LP workprefs.rtgboards[gui_rtg_index].rtgmem_size = 0; } else { workprefs.rtgboards[gui_rtg_index].rtgmem_type = gfxboard_get_id_from_index(v - 1); - if (workprefs.rtgboards[gui_rtg_index].rtgmem_size == 0) + if (workprefs.rtgboards[gui_rtg_index].rtgmem_size == 0) { workprefs.rtgboards[gui_rtg_index].rtgmem_size = 4096 * 1024; + } + workprefs.rtgboards[gui_rtg_index].autoswitch = true; } cfgfile_compatibility_rtg(&workprefs); enable_for_expansiondlg (hDlg); -- 2.47.3