From ac783022f5e788e66e27c8a29c6161a0265c3ecf Mon Sep 17 00:00:00 2001 From: amponzi Date: Tue, 23 Jan 2007 18:01:45 +0000 Subject: [PATCH] Adjusted a function to maintain VC++ compatibility --- desmume/src/windows/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index 9b12220ef..580d1a372 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -551,11 +551,13 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM switch (message) // handle the messages { case WM_CREATE: + { + RECT fullSize; ReadConfig(); - RECT fullSize ; - GetWindowRect(hwnd,&fullSize) ; - aspectratio = ((fullSize.right - fullSize.left) * 1.0) / ((fullSize.bottom - fullSize.top) * 1.0); + GetWindowRect(hwnd, &fullSize); + aspectratio = ((fullSize.right - fullSize.left) * 1.0) / ((fullSize.bottom - fullSize.top) * 1.0); return 0; + } case WM_DESTROY: NDS_Pause(); finished = TRUE;