From d818155e8eb8fbd1a245f06b16357b65d7f51287 Mon Sep 17 00:00:00 2001 From: "Jules.A" Date: Wed, 17 Oct 2018 03:51:21 +0800 Subject: [PATCH] Fixed settings not getting instantly updated causing MSAA sample checkboxes to not be disabled. --- desmume/src/frontend/windows/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index 607308675..258f23d75 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -5813,8 +5813,10 @@ LRESULT CALLBACK GFX3DSettingsDlgProc(HWND hw, UINT msg, WPARAM wp, LPARAM lp) case IDC_MSAA_LIMIT: { HWND cur; - BOOL enable = IsDlgButtonChecked(hw, IDC_MSAA_LIMIT); - + CommonSettings.GFX3D_Renderer_AntiAliasingLimit = IsDlgButtonChecked(hw, IDC_MSAA_LIMIT); + BOOL enable = CommonSettings.GFX3D_Renderer_AntiAliasingLimit; + + WritePrivateProfileBool("3D", "AntiAliasingLimit", enable, IniName); cur = GetDlgItem(hw, IDC_MSAA_SAMPLES_8); EnableWindow(cur, enable); cur = GetDlgItem(hw, IDC_MSAA_SAMPLES_4);