mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix fullscreen mode
Use the real retio (no stretching).
This commit is contained in:
parent
a4b72aee38
commit
52770afe74
@ -404,7 +404,7 @@ static bool DoInit (Sint32 argc, char *argv[])
|
|||||||
// Create a window.
|
// Create a window.
|
||||||
if (g_bFullScreen)
|
if (g_bFullScreen)
|
||||||
g_window = SDL_CreateWindow (NAME, 0, 0, LXIMAGE, LYIMAGE,
|
g_window = SDL_CreateWindow (NAME, 0, 0, LXIMAGE, LYIMAGE,
|
||||||
SDL_WINDOW_FULLSCREEN | SDL_WINDOW_INPUT_GRABBED);
|
SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_INPUT_GRABBED);
|
||||||
else
|
else
|
||||||
g_window = SDL_CreateWindow (NAME, SDL_WINDOWPOS_CENTERED,
|
g_window = SDL_CreateWindow (NAME, SDL_WINDOWPOS_CENTERED,
|
||||||
SDL_WINDOWPOS_CENTERED, LXIMAGE, LYIMAGE, 0);
|
SDL_WINDOWPOS_CENTERED, LXIMAGE, LYIMAGE, 0);
|
||||||
@ -425,7 +425,7 @@ static bool DoInit (Sint32 argc, char *argv[])
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_SetHint (SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
|
||||||
|
|
||||||
if (!bOK) // config.ini pas correct ?
|
if (!bOK) // config.ini pas correct ?
|
||||||
return InitFail ("Game not correctly installed", false);
|
return InitFail ("Game not correctly installed", false);
|
||||||
|
@ -229,7 +229,7 @@ void CMovie::Stop()
|
|||||||
if (!m_bEnable)
|
if (!m_bEnable)
|
||||||
return;
|
return;
|
||||||
fileCloseMovie();
|
fileCloseMovie();
|
||||||
SDL_RenderSetLogicalSize (g_renderer, 0, 0);
|
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMovie::Pause()
|
void CMovie::Pause()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user