Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compiler warnings
  • Loading branch information
slouken committed Dec 5, 2009
1 parent fb4c460 commit e70987f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/video/SDL_video.c
Expand Up @@ -597,7 +597,7 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode *
{
SDL_DisplayMode display_mode;
SDL_DisplayMode current_mode;
int i, ncolors;
int ncolors;

if (mode) {
display_mode = *mode;
Expand Down Expand Up @@ -687,6 +687,7 @@ SDL_SetWindowDisplayMode(SDL_WindowID windowID, const SDL_DisplayMode * mode)
} else {
SDL_zero(window->fullscreen_mode);
}
return 0;
}

int
Expand Down Expand Up @@ -832,8 +833,6 @@ SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int fir
int
SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors)
{
SDL_Palette *palette;

if (!_this) {
SDL_UninitializedVideo();
return -1;
Expand Down

0 comments on commit e70987f

Please sign in to comment.