mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
[ion/sdl] Update the renderer's size on relayout
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user