mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
SDL: Enable the startup fullscreen hack for X11 only
It causes problems on AmigaOS and Linux/SDL2/Vivante
This commit is contained in:
parent
f0a87ed8ad
commit
ae634388e9
@ -481,7 +481,8 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {
|
||||
// a chance to save the window size. That way if the user switches back
|
||||
// to windowed mode, the window manager has a window size to apply instead
|
||||
// of leaving the window at the fullscreen resolution size.
|
||||
if (!_window->getSDLWindow()) {
|
||||
const char *driver = SDL_GetCurrentVideoDriver();
|
||||
if (!_window->getSDLWindow() && driver && strcmp(driver, "x11") == 0) {
|
||||
_window->createOrUpdateWindow(width, height, flags);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user