From eb093b103c23fe3de2e5e524f1b50a8944c8db6a Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 14 Feb 2017 18:03:50 +0100 Subject: [PATCH] Use real fullscreen mode The logical size is not adapted for a game like planetblupi. We should create the textures for higher definitions and a dynamic view for the game map. --- src/blupi.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/blupi.cpp b/src/blupi.cpp index 02f5652..2ac8bed 100644 --- a/src/blupi.cpp +++ b/src/blupi.cpp @@ -415,7 +415,7 @@ static bool DoInit (Sint32 argc, char *argv[]) // Create a window. if (g_bFullScreen) g_window = SDL_CreateWindow (NAME, 0, 0, LXIMAGE, LYIMAGE, - SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_INPUT_GRABBED); + SDL_WINDOW_FULLSCREEN | SDL_WINDOW_INPUT_GRABBED); else g_window = SDL_CreateWindow (NAME, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, LXIMAGE, LYIMAGE, 0); @@ -434,8 +434,6 @@ static bool DoInit (Sint32 argc, char *argv[]) return false; } - SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE); - if (!bOK) // config.ini pas correct ? return InitFail ("Game not correctly installed", false);