SDL: Enable the startup fullscreen hack for X11 only

It causes problems on AmigaOS and Linux/SDL2/Vivante
This commit is contained in:
Bastien Bouclet 2017-12-10 15:18:42 +01:00
parent f0a87ed8ad
commit ae634388e9

View File

@ -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);
}