# HG changeset patch # User Sam Lantinga # Date 1294868797 28800 # Node ID 4a7f284a82b2282cc6691ff3747fdc11567c407f # Parent 85969cc5098c4d5cd2a4c07a4a9d344e81bb538a You can't change the resolution on some devices diff -r 85969cc5098c -r 4a7f284a82b2 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; }