From 33b2be2644d959583153b9a9bc29ef9572c041c1 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 18 Mar 2017 00:13:40 +0900 Subject: win32: fixed 2x button toggle --- win32/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/main.c b/win32/main.c index 9cef778..8a5485e 100644 --- a/win32/main.c +++ b/win32/main.c @@ -471,6 +471,7 @@ static void toggle_2x(HWND hwnd) { AdjustWindowRectEx(&wr, style, 0, exstyle); SetWindowPos(hwnd, HWND_TOP, 0, 0, wr.right-wr.left, wr.bottom-wr.top, SWP_NOZORDER | SWP_NOMOVE); + Button_SetCheck(g.button_2x, g.fmdsp_2x); } static bool proc_key(UINT vk, bool down, int repeat) { @@ -646,7 +647,6 @@ static void on_command(HWND hwnd, int id, HWND hwnd_c, UINT code) { break; case ID_2X: toggle_2x(hwnd); - Button_SetCheck(g.button_2x, g.fmdsp_2x); break; case ID_TONEVIEW: show_toneview(g.hinst, hwnd); -- cgit v1.2.3