# HG changeset patch # User Sam Lantinga # Date 1297448010 28800 # Node ID f908e06b3c9604671fac826793335973310c10ea # Parent 7a963be087ef8bb65918f760e4f85fe471d80a7f Fixed compiling on Windows diff -r 7a963be087ef -r f908e06b3c96 VisualC/SDL/SDL_VS2008.vcproj --- a/VisualC/SDL/SDL_VS2008.vcproj Fri Feb 11 00:25:44 2011 -0800 +++ b/VisualC/SDL/SDL_VS2008.vcproj Fri Feb 11 10:13:30 2011 -0800 @@ -867,10 +867,6 @@ > - - @@ -1235,14 +1231,6 @@ > - - - - diff -r 7a963be087ef -r f908e06b3c96 VisualC/SDL/SDL_VS2010.vcxproj --- a/VisualC/SDL/SDL_VS2010.vcxproj Fri Feb 11 00:25:44 2011 -0800 +++ b/VisualC/SDL/SDL_VS2010.vcxproj Fri Feb 11 10:13:30 2011 -0800 @@ -341,7 +341,6 @@ - @@ -417,7 +416,6 @@ - @@ -457,7 +455,6 @@ - diff -r 7a963be087ef -r f908e06b3c96 VisualCE/SDL/SDL.vcproj --- a/VisualCE/SDL/SDL.vcproj Fri Feb 11 00:25:44 2011 -0800 +++ b/VisualCE/SDL/SDL.vcproj Fri Feb 11 10:13:30 2011 -0800 @@ -862,10 +862,6 @@ > - - @@ -1054,10 +1050,6 @@ > - - @@ -1399,10 +1391,6 @@ > - - diff -r 7a963be087ef -r f908e06b3c96 src/SDL_compat.c --- a/src/SDL_compat.c Fri Feb 11 00:25:44 2011 -0800 +++ b/src/SDL_compat.c Fri Feb 11 10:13:30 2011 -0800 @@ -79,7 +79,7 @@ variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD"); } if ( variable ) { - SDL_atoi(variable); + return SDL_atoi(variable); } else { return 0; } diff -r 7a963be087ef -r f908e06b3c96 src/video/SDL_video.c --- a/src/video/SDL_video.c Fri Feb 11 00:25:44 2011 -0800 +++ b/src/video/SDL_video.c Fri Feb 11 10:13:30 2011 -0800 @@ -1004,7 +1004,6 @@ SDL_GetWindowPixelFormat(SDL_Window * window) { SDL_VideoDisplay *display; - SDL_DisplayMode *displayMode; CHECK_WINDOW_MAGIC(window, SDL_PIXELFORMAT_UNKNOWN); @@ -1097,7 +1096,6 @@ SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE | SDL_WINDOW_INPUT_GRABBED); - SDL_VideoDisplay *display; SDL_Window *window; if (!_this) { @@ -1269,7 +1267,6 @@ SDL_GetWindowFromID(Uint32 id) { SDL_Window *window; - int i; if (!_this) { return NULL; diff -r 7a963be087ef -r f908e06b3c96 src/video/windows/SDL_windowsclipboard.c --- a/src/video/windows/SDL_windowsclipboard.c Fri Feb 11 00:25:44 2011 -0800 +++ b/src/video/windows/SDL_windowsclipboard.c Fri Feb 11 10:13:30 2011 -0800 @@ -37,15 +37,11 @@ static HWND GetWindowHandle(_THIS) { - SDL_VideoDisplay *display; SDL_Window *window; - display = _this->displays; - if (display) { - window = display->windows; - if (window) { - return ((SDL_WindowData *) window->driverdata)->hwnd; - } + window = _this->windows; + if (window) { + return ((SDL_WindowData *) window->driverdata)->hwnd; } return NULL; } diff -r 7a963be087ef -r f908e06b3c96 src/video/windows/SDL_windowsmodes.c --- a/src/video/windows/SDL_windowsmodes.c Fri Feb 11 00:25:44 2011 -0800 +++ b/src/video/windows/SDL_windowsmodes.c Fri Feb 11 10:13:30 2011 -0800 @@ -217,8 +217,8 @@ // WINCE: DEVMODE.dmPosition not found, or may be mingw32ce bug rect->x = 0; rect->y = 0; - rect->w = display->windows->w; - rect->h = display->windows->h; + rect->w = _this->windows->w; + rect->h = _this->windows->h; #else rect->x = (int)data->DeviceMode.dmPosition.x; rect->y = (int)data->DeviceMode.dmPosition.y;