diff options
author | Bastien Bouclet | 2017-12-10 15:18:42 +0100 |
---|---|---|
committer | Bastien Bouclet | 2017-12-10 15:23:16 +0100 |
commit | ae634388e909b0d6f42b1fc250ea8ce5a8111fb0 (patch) | |
tree | 62321eab4d8f9e100b68a88fb56aa97278be9458 /backends/graphics/openglsdl | |
parent | f0a87ed8ad0c0b6e923d9b34ee4fd02907328602 (diff) | |
download | scummvm-rg350-ae634388e909b0d6f42b1fc250ea8ce5a8111fb0.tar.gz scummvm-rg350-ae634388e909b0d6f42b1fc250ea8ce5a8111fb0.tar.bz2 scummvm-rg350-ae634388e909b0d6f42b1fc250ea8ce5a8111fb0.zip |
SDL: Enable the startup fullscreen hack for X11 only
It causes problems on AmigaOS and Linux/SDL2/Vivante
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index c77e9dafc5..3209905085 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -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); } |