From 9b052fa8a2877ef150e1c7f28fcc4802900fcb49 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Thu, 14 Sep 2017 00:07:21 +0200 Subject: [PATCH] Start with a window and after go in fullscreen It prevents glitches with the textures on old systems. No idea why... --- src/blupi.cxx | 11 +++-------- src/event.cxx | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/blupi.cxx b/src/blupi.cxx index 61b6e3f..30b3e6f 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -627,14 +627,9 @@ DoInit (int argc, char * argv[], bool & exit) return EXIT_FAILURE; // Create a window. - if (g_bFullScreen) - g_window = SDL_CreateWindow ( - gettext ("Planet Blupi"), 0, 0, LXIMAGE, LYIMAGE, - SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS | SDL_WINDOW_INPUT_GRABBED); - else - g_window = SDL_CreateWindow ( - gettext ("Planet Blupi"), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, - LXIMAGE, LYIMAGE, 0); + g_window = SDL_CreateWindow ( + gettext ("Planet Blupi"), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, + LXIMAGE, LYIMAGE, 0); if (!g_window) { diff --git a/src/event.cxx b/src/event.cxx index 6aa45d3..ddf3926 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -1519,7 +1519,7 @@ CEvent::CEvent () { Sint32 i; - m_bFullScreen = g_bFullScreen; + m_bFullScreen = false; m_WindowScale = 1; m_exercice = 0; m_mission = 0;