From d0770596ea1e05f5a5d051cc461a2305d0f458fc Mon Sep 17 00:00:00 2001 From: StapleButter Date: Mon, 2 Oct 2017 03:34:17 +0200 Subject: re-add basic scaling --- src/libui_sdl/libui/windows/area.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libui_sdl/libui/windows') diff --git a/src/libui_sdl/libui/windows/area.cpp b/src/libui_sdl/libui/windows/area.cpp index 74fe768..6bb8fe7 100644 --- a/src/libui_sdl/libui/windows/area.cpp +++ b/src/libui_sdl/libui/windows/area.cpp @@ -37,6 +37,11 @@ static LRESULT CALLBACK areaWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM uiWindowsEnsureGetClientRect(a->hwnd, &client); areaDrawOnResize(a, &client); areaScrollOnResize(a, &client); + { + double w, h; + loadAreaSize(a, a->rt, &w, &h); + a->ah->Resize(a->ah, a, (int)w, (int)h); + } return 0; } -- cgit v1.2.3