src/video/SDL_video.c
changeset 3526 e6f2f312780f
parent 3517 e7eec78e4b92
child 3528 59ff7a2beb57
     1.1 --- a/src/video/SDL_video.c	Sat Dec 05 19:57:49 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Sat Dec 05 22:13:36 2009 +0000
     1.3 @@ -597,7 +597,7 @@
     1.4  {
     1.5      SDL_DisplayMode display_mode;
     1.6      SDL_DisplayMode current_mode;
     1.7 -    int i, ncolors;
     1.8 +    int ncolors;
     1.9  
    1.10      if (mode) {
    1.11          display_mode = *mode;
    1.12 @@ -687,6 +687,7 @@
    1.13      } else {
    1.14          SDL_zero(window->fullscreen_mode);
    1.15      }
    1.16 +    return 0;
    1.17  }
    1.18  
    1.19  int
    1.20 @@ -832,8 +833,6 @@
    1.21  int
    1.22  SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors)
    1.23  {
    1.24 -    SDL_Palette *palette;
    1.25 -
    1.26      if (!_this) {
    1.27          SDL_UninitializedVideo();
    1.28          return -1;