diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-05-04 14:00:45 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-05-04 14:00:45 (GMT) |
| commit | 1575d93d489e4bebc411e13c30768f335895c035 (patch) | |
| tree | d6e089b7f0c7f69fd0f2adcd76485dd670c73cf6 /src/PowderToySDL.cpp | |
| parent | ed9710c33d18e51a7136d5e29498a68af9c15e86 (diff) | |
| download | powder-1575d93d489e4bebc411e13c30768f335895c035.zip powder-1575d93d489e4bebc411e13c30768f335895c035.tar.gz | |
Fix compilation issues on Windows with Window Position Loader
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 93a8996..9c175f4 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -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; } |
