mirror of
https://github.com/yawut/SDL.git
synced 2026-06-21 11:59:49 -05:00
You can't change the resolution on some devices
This commit is contained in:
parent
0e378c9dd3
commit
9c4a36d79e
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user