Adjusted a function to maintain VC++ compatibility
This commit is contained in:
parent
3820a04bda
commit
ac783022f5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue