From c1c5ff3b0ec2704bb2cd3ff6a2fd5c7242a8b4a0 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 25 Mar 2009 02:40:27 +0000 Subject: [PATCH] win32: at some point the emulator quit remembering the window position between sessions. i fixed that. --- desmume/src/windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 81b50523b..ca8f427a2 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -2146,6 +2146,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM SendMessage(hwnd, WM_PAINT, 0, 0x12345678); return 0; case WM_MOVE: + WndY = HIWORD(lParam); + WndX = LOWORD(lParam); UpdateWndRects(hwnd); return 0; case WM_SIZING: