[ion/sdl] Update the renderer's size on relayout

This commit is contained in:
Romain Goyet
2019-03-08 11:58:34 +01:00
parent be10157c49
commit 607c3cef4b

View File

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