From 614896f49f88f4cefd57d3cf8ce663d984d19231 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 23:37:33 +0200 Subject: Windows: Fix configured window size --- pugl/pugl_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pugl') diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c index 0e378eb..3f5a293 100644 --- a/pugl/pugl_win.c +++ b/pugl/pugl_win.c @@ -600,7 +600,7 @@ static RECT handleConfigure(PuglView* view, PuglEvent* event) { RECT rect; - GetWindowRect(view->impl->hwnd, &rect); + GetClientRect(view->impl->hwnd, &rect); view->width = rect.right - rect.left; view->height = rect.bottom - rect.top; -- cgit v1.2.1