diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-10-02 03:34:17 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-10-02 03:34:17 +0200 |
commit | d0770596ea1e05f5a5d051cc461a2305d0f458fc (patch) | |
tree | 59a71f5b9d676729b3890cdc009a2e3f32cf343d /src/libui_sdl/libui/windows | |
parent | 09920126ddcc84d98e333287566d8483ad3410a8 (diff) |
re-add basic scaling
Diffstat (limited to 'src/libui_sdl/libui/windows')
-rw-r--r-- | src/libui_sdl/libui/windows/area.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |