[Scummvm-git-logs] scummvm master -> ae634388e909b0d6f42b1fc250ea8ce5a8111fb0
bgK
bastien.bouclet at gmail.com
Sun Dec 10 15:25:12 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ae634388e9 SDL: Enable the startup fullscreen hack for X11 only
Commit: ae634388e909b0d6f42b1fc250ea8ce5a8111fb0
https://github.com/scummvm/scummvm/commit/ae634388e909b0d6f42b1fc250ea8ce5a8111fb0
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2017-12-10T15:23:16+01:00
Commit Message:
SDL: Enable the startup fullscreen hack for X11 only
It causes problems on AmigaOS and Linux/SDL2/Vivante
Changed paths:
backends/graphics/openglsdl/openglsdl-graphics.cpp
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index c77e9da..3209905 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);
}
More information about the Scummvm-git-logs
mailing list