From 835dde1a18d2a37fa1751983c4ac1a3f42ffb346 Mon Sep 17 00:00:00 2001 From: Sam Lantinga <slouken@libsdl.org> Date: Wed, 12 Jan 2011 13:46:37 -0800 Subject: [PATCH] You can't change the resolution on some devices --- src/video/SDL_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 06e27e2c..f70ea270 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -694,6 +694,10 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * } /* 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; } -- 2.18.1