From 52770afe7492cb645b06591a81507960e976e458 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sun, 12 Feb 2017 18:37:08 +0100 Subject: [PATCH] Fix fullscreen mode Use the real retio (no stretching). --- src/blupi.cpp | 4 ++-- src/movie.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blupi.cpp b/src/blupi.cpp index f1b42c6..626eea3 100644 --- a/src/blupi.cpp +++ b/src/blupi.cpp @@ -404,7 +404,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 | SDL_WINDOW_INPUT_GRABBED); + SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_INPUT_GRABBED); else g_window = SDL_CreateWindow (NAME, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, LXIMAGE, LYIMAGE, 0); @@ -425,7 +425,7 @@ static bool DoInit (Sint32 argc, char *argv[]) return false; } - SDL_SetHint (SDL_HINT_RENDER_SCALE_QUALITY, "linear"); + SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE); if (!bOK) // config.ini pas correct ? return InitFail ("Game not correctly installed", false); diff --git a/src/movie.cpp b/src/movie.cpp index c52b658..6d6c80b 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -229,7 +229,7 @@ void CMovie::Stop() if (!m_bEnable) return; fileCloseMovie(); - SDL_RenderSetLogicalSize (g_renderer, 0, 0); + SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE); } void CMovie::Pause()