aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 23:37:33 +0200
committerDavid Robillard <d@drobilla.net>2019-07-23 20:28:56 +0200
commit614896f49f88f4cefd57d3cf8ce663d984d19231 (patch)
tree95734fc847c81bef33f5a158f37ea2bdcb5d8e8b /pugl
parent9ca94acb7afc6812975af80afcaeff13a65a009f (diff)
downloadpugl-614896f49f88f4cefd57d3cf8ce663d984d19231.tar.gz
pugl-614896f49f88f4cefd57d3cf8ce663d984d19231.tar.bz2
pugl-614896f49f88f4cefd57d3cf8ce663d984d19231.zip
Windows: Fix configured window size
Diffstat (limited to 'pugl')
-rw-r--r--pugl/pugl_win.c2
1 files changed, 1 insertions, 1 deletions
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;