You can't change the resolution on some devices
This commit is contained in:
parent
9ec38356d0
commit
835dde1a18
1 changed files with 4 additions and 0 deletions
|
@ -694,6 +694,10 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode *
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Actually change the display mode */
|
/* 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) {
|
if (_this->SetDisplayMode(_this, display, &display_mode) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue