diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index bbd358fa6..876c80161 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -199,8 +199,8 @@ void SetWindowClientSize(HWND hwnd, int cx, int cy) //found at: http://blogs.msd void ScaleScreen(float factor) { - factor -= 1 ; RECT fullSize,clientSize ; + factor -= 1 ; GetWindowRect(hwnd,&fullSize) ; GetClientRect(hwnd,&clientSize) ; fullSize.right += (clientSize.right - clientSize.left) * factor ;