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

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.
This commit is contained in:
Mathieu Schroeter 2017-02-14 18:03:50 +01:00
parent 9ae4056b92
commit eb093b103c

View File

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