diff --git a/VisualC/SDL/SDL_VS2008.vcproj b/VisualC/SDL/SDL_VS2008.vcproj
index 53fa5eedc..8a118fb2c 100644
--- a/VisualC/SDL/SDL_VS2008.vcproj
+++ b/VisualC/SDL/SDL_VS2008.vcproj
@@ -866,10 +866,6 @@
RelativePath="..\..\src\video\SDL_fillrect.c"
>
-
-
@@ -1234,14 +1230,6 @@
RelativePath="..\..\src\video\windows\SDL_windowsframebuffer.h"
>
-
-
-
-
diff --git a/VisualC/SDL/SDL_VS2010.vcxproj b/VisualC/SDL/SDL_VS2010.vcxproj
index b180e9048..f58ddb737 100644
--- a/VisualC/SDL/SDL_VS2010.vcxproj
+++ b/VisualC/SDL/SDL_VS2010.vcxproj
@@ -341,7 +341,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
-
@@ -417,7 +416,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
-
@@ -457,7 +455,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
-
diff --git a/VisualCE/SDL/SDL.vcproj b/VisualCE/SDL/SDL.vcproj
index dec165349..f11945845 100644
--- a/VisualCE/SDL/SDL.vcproj
+++ b/VisualCE/SDL/SDL.vcproj
@@ -861,10 +861,6 @@
RelativePath="..\..\src\video\SDL_fillrect.c"
>
-
-
@@ -1053,10 +1049,6 @@
RelativePath="..\..\src\video\windows\SDL_windowsframebuffer.c"
>
-
-
@@ -1398,10 +1390,6 @@
RelativePath="..\..\src\video\windows\SDL_windowsframebuffer.h"
>
-
-
diff --git a/src/SDL_compat.c b/src/SDL_compat.c
index d67fc5adb..29d8b578f 100644
--- a/src/SDL_compat.c
+++ b/src/SDL_compat.c
@@ -79,7 +79,7 @@ GetVideoDisplay()
variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
}
if ( variable ) {
- SDL_atoi(variable);
+ return SDL_atoi(variable);
} else {
return 0;
}
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index bfa40dc6e..7cef5128f 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -1004,7 +1004,6 @@ Uint32
SDL_GetWindowPixelFormat(SDL_Window * window)
{
SDL_VideoDisplay *display;
- SDL_DisplayMode *displayMode;
CHECK_WINDOW_MAGIC(window, SDL_PIXELFORMAT_UNKNOWN);
@@ -1097,7 +1096,6 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
SDL_WINDOW_BORDERLESS |
SDL_WINDOW_RESIZABLE |
SDL_WINDOW_INPUT_GRABBED);
- SDL_VideoDisplay *display;
SDL_Window *window;
if (!_this) {
@@ -1269,7 +1267,6 @@ SDL_Window *
SDL_GetWindowFromID(Uint32 id)
{
SDL_Window *window;
- int i;
if (!_this) {
return NULL;
diff --git a/src/video/windows/SDL_windowsclipboard.c b/src/video/windows/SDL_windowsclipboard.c
index 17e461b30..3ab9c6d8a 100644
--- a/src/video/windows/SDL_windowsclipboard.c
+++ b/src/video/windows/SDL_windowsclipboard.c
@@ -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 --git a/src/video/windows/SDL_windowsmodes.c b/src/video/windows/SDL_windowsmodes.c
old mode 100644
new mode 100755
index 1b3a5923d..2ad53463b
--- a/src/video/windows/SDL_windowsmodes.c
+++ b/src/video/windows/SDL_windowsmodes.c
@@ -217,8 +217,8 @@ WIN_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
// 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;