Fix a bug that mouse cannot work correctly when maximize the window from 1x window size.

This commit is contained in:
shenweip 2013-09-26 00:19:13 +08:00
parent 653de117b9
commit eb33037f3c

View File

@ -830,7 +830,7 @@ namespace MainWindow
LRESULT CALLBACK DisplayProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { LRESULT CALLBACK DisplayProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
// Only apply a factor > 1 in windowed mode. // 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) { switch (message) {
case WM_ACTIVATE: case WM_ACTIVATE: