From 607c3cef4bfeaf073ce64c3dce0c1a2c1ffd7569 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 8 Mar 2019 11:58:34 +0100 Subject: [PATCH] [ion/sdl] Update the renderer's size on relayout --- ion/src/sdl/shared/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ion/src/sdl/shared/main.cpp b/ion/src/sdl/shared/main.cpp index 6b8c0f3ca..3db48a272 100644 --- a/ion/src/sdl/shared/main.cpp +++ b/ion/src/sdl/shared/main.cpp @@ -58,6 +58,8 @@ void relayout() { int windowWidth = 0; int windowHeight = 0; SDL_GetWindowSize(sWindow, &windowWidth, &windowHeight); + SDL_RenderSetLogicalSize(sRenderer, windowWidth, windowHeight); + Layout::recompute(windowWidth, windowHeight); SDL_Rect backgroundRect; Layout::getBackgroundRect(&backgroundRect);