You can't change the resolution on some devices
authorSam Lantinga
Wed, 12 Jan 2011 13:46:37 -0800
changeset 49784a7f284a82b2
parent 4977 85969cc5098c
child 4979 be4ba07d9867
You can't change the resolution on some devices
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Wed Jan 12 13:38:10 2011 -0800
     1.2 +++ b/src/video/SDL_video.c	Wed Jan 12 13:46:37 2011 -0800
     1.3 @@ -694,6 +694,10 @@
     1.4      }
     1.5  
     1.6      /* Actually change the display mode */
     1.7 +    if (!_this->SetDisplayMode) {
     1.8 +        SDL_SetError("Video driver doesn't support changing display mode");
     1.9 +        return -1;
    1.10 +    }
    1.11      if (_this->SetDisplayMode(_this, display, &display_mode) < 0) {
    1.12          return -1;
    1.13      }