src/video/SDL_video.c
changeset 2869 2fe507a2ef7d
parent 2860 6ce28e5287e9
child 2875 91a7e08cd238
     1.1 --- a/src/video/SDL_video.c	Sat Dec 13 13:10:53 2008 +0000
     1.2 +++ b/src/video/SDL_video.c	Sat Dec 13 13:30:11 2008 +0000
     1.3 @@ -658,7 +658,10 @@
     1.4      if (!mode) {
     1.5          mode = &display->desktop_mode;
     1.6      }
     1.7 -    SDL_GetClosestDisplayMode(mode, &fullscreen_mode);
     1.8 +    if (!SDL_GetClosestDisplayMode(mode, &fullscreen_mode)) {
     1.9 +        SDL_SetError("Couldn't find display mode match");
    1.10 +        return -1;
    1.11 +    }
    1.12      if (SDL_memcmp
    1.13          (&fullscreen_mode, &display->fullscreen_mode,
    1.14           sizeof(fullscreen_mode)) == 0) {