From 1575d93d489e4bebc411e13c30768f335895c035 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 4 May 2013 15:00:45 +0100 Subject: Fix compilation issues on Windows with Window Position Loader 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 #include "SDL.h" #ifdef WIN +#define _WIN32_WINNT 0x0501 //Necessary for some macros and functions #include "SDL_syswm.h" #include #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; } -- cgit v0.9.2-21-gd62e