From eb33037f3ccc596bb665a8f0cb2e34da9ab99163 Mon Sep 17 00:00:00 2001 From: shenweip <1037567878@qq.com> Date: Thu, 26 Sep 2013 00:19:13 +0800 Subject: [PATCH] Fix a bug that mouse cannot work correctly when maximize the window from 1x window size. --- Windows/WndMainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 5ae1c3cbea..5d3afc108c 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -830,7 +830,7 @@ namespace MainWindow LRESULT CALLBACK DisplayProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { // Only apply a factor > 1 in windowed mode. - int factor = !g_Config.bFullScreen && g_Config.iWindowWidth < (480 + 80) ? 2 : 1; + int factor = !IsZoomed(GetHWND()) && !g_Config.bFullScreen && g_Config.iWindowWidth < (480 + 80) ? 2 : 1; switch (message) { case WM_ACTIVATE: