1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Start with a window and after go in fullscreen

It prevents glitches with the textures on old systems.
No idea why...
This commit is contained in:
Mathieu Schroeter 2017-09-14 00:07:21 +02:00
parent 81cd5e2d9b
commit 9b052fa8a2
2 changed files with 4 additions and 9 deletions

View File

@ -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)
{

View File

@ -1519,7 +1519,7 @@ CEvent::CEvent ()
{
Sint32 i;
m_bFullScreen = g_bFullScreen;
m_bFullScreen = false;
m_WindowScale = 1;
m_exercice = 0;
m_mission = 0;