mirror of
https://github.com/yawut/SDL.git
synced 2026-09-25 01:45:41 -05:00
You can't change the resolution on some devices
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user