src/video/SDL_video.c
changeset 4978 4a7f284a82b2
parent 4977 85969cc5098c
child 4984 889e6fef8fc5
--- a/src/video/SDL_video.c	Wed Jan 12 13:38:10 2011 -0800
+++ b/src/video/SDL_video.c	Wed Jan 12 13:46:37 2011 -0800
@@ -694,6 +694,10 @@
     }
 
     /* Actually change the display mode */
+    if (!_this->SetDisplayMode) {
+        SDL_SetError("Video driver doesn't support changing display mode");
+        return -1;
+    }
     if (_this->SetDisplayMode(_this, display, &display_mode) < 0) {
         return -1;
     }