From c1b0850c1a206e8d604e3ef71062d028d59adc70 Mon Sep 17 00:00:00 2001 From: OV2 Date: Mon, 24 Jan 2011 23:10:21 +0100 Subject: [PATCH] Win32: fix hi-res filter selection --- win32/wsnes9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 904c03f0..3a864874 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -7098,7 +7098,7 @@ INT_PTR CALLBACK DlgFunky(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) // have to start focus on something like this or Escape won't exit the dialog SetFocus(hDlg); - goto checkUpdateFilterBox2; + SendDlgItemMessage(hDlg,IDC_FILTERBOX2,CB_SETCURSEL,(WPARAM)GUI.ScaleHiRes,0); break; case WM_CLOSE: @@ -7330,7 +7330,7 @@ updateFilterBox2: { char text [256]; text[0] = '\0'; - SendMessage(GetDlgItem(hDlg, IDC_FILTERBOX2), WM_GETTEXT, 256,(LPARAM)text); + SendMessageA(GetDlgItem(hDlg, IDC_FILTERBOX2), WM_GETTEXT, 256,(LPARAM)text); int scale = GUI.Scale; for(int i=0; i