Adjusted a function to maintain VC++ compatibility

This commit is contained in:
amponzi 2007-01-23 18:01:45 +00:00
parent 3820a04bda
commit ac783022f5
1 changed files with 5 additions and 3 deletions

View File

@ -551,11 +551,13 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
switch (message) // handle the messages switch (message) // handle the messages
{ {
case WM_CREATE: case WM_CREATE:
{
RECT fullSize;
ReadConfig(); ReadConfig();
RECT fullSize ; GetWindowRect(hwnd, &fullSize);
GetWindowRect(hwnd,&fullSize) ; aspectratio = ((fullSize.right - fullSize.left) * 1.0) / ((fullSize.bottom - fullSize.top) * 1.0);
aspectratio = ((fullSize.right - fullSize.left) * 1.0) / ((fullSize.bottom - fullSize.top) * 1.0);
return 0; return 0;
}
case WM_DESTROY: case WM_DESTROY:
NDS_Pause(); NDS_Pause();
finished = TRUE; finished = TRUE;