From 929a213b71f606490e1301eac22f267ca335ba48 Mon Sep 17 00:00:00 2001 From: BearOso Date: Fri, 24 Mar 2023 13:54:34 -0500 Subject: [PATCH] Win32: Don't change hi-res filter when changing lo-res filter. --- win32/wsnes9x.cpp | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 0d09064d..c7039d84 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -7861,10 +7861,8 @@ INT_PTR CALLBACK DlgFunky(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) const int oldScaleScale = max(GetFilterScale(GUI.Scale), GetFilterScale(GUI.ScaleHiRes)); -// UpdateScale(GUI.Scale, scale); GUI.Scale = (RenderFilter)scale; - const int newScaleScale = max(GetFilterScale(GUI.Scale), GetFilterScale(GUI.ScaleHiRes)); if(oldScaleScale != newScaleScale) @@ -7873,45 +7871,9 @@ INT_PTR CALLBACK DlgFunky(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) // refresh screen, so the user can see the new filter // (assuming the dialog box isn't completely covering the game window) WinRefreshDisplay(); - - // set hi-res combo box to match the lo-res output filter as best as possible -// if(GetFilterHiResSupport(GUI.Scale)) -checkUpdateFilterBox2: - { - char textOriginal [256]; - SendMessageA(GetDlgItem(hDlg, IDC_FILTERBOX), WM_GETTEXT, 256,(LPARAM)textOriginal); - int count = SendDlgItemMessage(hDlg,IDC_FILTERBOX2,CB_GETCOUNT,0,0); -// int scale = GUI.Scale; - bool switched = false; - for(int j=0; j<2 && !switched; j++){ - if(j){ - RenderFilter filter; // no match, set default for chosen scale - switch(GetFilterScale(GUI.Scale)){ - case 1: filter = FILTER_SIMPLE1X; break; - default: case 2: filter = FILTER_SIMPLE2X; break; - case 3: filter = FILTER_SIMPLE3X; break; - case 4: filter = FILTER_SIMPLE4X; break; - case 5: case 6: filter = FILTER_SIMPLE4X; break; - } - strcpy(textOriginal, GetFilterName(filter)); - } - for(int i=0; i