You can't change the resolution on some devices
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Jan 2011 13:46:37 -0800
changeset 4978 4a7f284a82b2
parent 4977 85969cc5098c
child 4979 be4ba07d9867
You can't change the resolution on some devices
src/video/SDL_video.c
--- 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;
     }