Whoops, the X11 driver doesn't support fullscreen modes (yet)
authorSam Lantinga <slouken@libsdl.org>
Sat, 13 Dec 2008 13:30:11 +0000
changeset 2869 2fe507a2ef7d
parent 2868 3b595278f813
child 2870 b801df19835f
Whoops, the X11 driver doesn't support fullscreen modes (yet)
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Sat Dec 13 13:10:53 2008 +0000
+++ b/src/video/SDL_video.c	Sat Dec 13 13:30:11 2008 +0000
@@ -658,7 +658,10 @@
     if (!mode) {
         mode = &display->desktop_mode;
     }
-    SDL_GetClosestDisplayMode(mode, &fullscreen_mode);
+    if (!SDL_GetClosestDisplayMode(mode, &fullscreen_mode)) {
+        SDL_SetError("Couldn't find display mode match");
+        return -1;
+    }
     if (SDL_memcmp
         (&fullscreen_mode, &display->fullscreen_mode,
          sizeof(fullscreen_mode)) == 0) {