Fix compilation issues on Windows with Window Position Loader

This commit is contained in:
Simon Robertshaw 2013-05-04 15:00:45 +01:00
parent ed9710c33d
commit 1575d93d48

View File

@ -5,6 +5,7 @@
#include <time.h>
#include "SDL.h"
#ifdef WIN
#define _WIN32_WINNT 0x0501 //Necessary for some macros and functions
#include "SDL_syswm.h"
#include <direct.h>
#endif
@ -612,8 +613,8 @@ bool SaveWindowPosition()
placement.length = sizeof(placement);
GetWindowPlacement(sysInfo.window, &placement);
Client::Ref().SetPref("WindowX", placement.rcNormalPosition.left);
Client::Ref().SetPref("WindowY", placement.rcNormalPosition.top);
Client::Ref().SetPref("WindowX", (int)placement.rcNormalPosition.left);
Client::Ref().SetPref("WindowY", (int)placement.rcNormalPosition.top);
return true;
}