From ae634388e909b0d6f42b1fc250ea8ce5a8111fb0 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 10 Dec 2017 15:18:42 +0100 Subject: SDL: Enable the startup fullscreen hack for X11 only It causes problems on AmigaOS and Linux/SDL2/Vivante --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3