Commit 656ee60a authored by Sam Lantinga's avatar Sam Lantinga

Fixed compiler warnings

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404269
parent e2ff36e2
...@@ -597,7 +597,7 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * ...@@ -597,7 +597,7 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode *
{ {
SDL_DisplayMode display_mode; SDL_DisplayMode display_mode;
SDL_DisplayMode current_mode; SDL_DisplayMode current_mode;
int i, ncolors; int ncolors;
if (mode) { if (mode) {
display_mode = *mode; display_mode = *mode;
...@@ -687,6 +687,7 @@ SDL_SetWindowDisplayMode(SDL_WindowID windowID, const SDL_DisplayMode * mode) ...@@ -687,6 +687,7 @@ SDL_SetWindowDisplayMode(SDL_WindowID windowID, const SDL_DisplayMode * mode)
} else { } else {
SDL_zero(window->fullscreen_mode); SDL_zero(window->fullscreen_mode);
} }
return 0;
} }
int int
...@@ -832,8 +833,6 @@ SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int fir ...@@ -832,8 +833,6 @@ SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int fir
int int
SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors) SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors)
{ {
SDL_Palette *palette;
if (!_this) { if (!_this) {
SDL_UninitializedVideo(); SDL_UninitializedVideo();
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment