aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/win.h')
-rw-r--r--pugl/detail/win.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pugl/detail/win.h b/pugl/detail/win.h
index c051eb1..8d6ce12 100644
--- a/pugl/detail/win.h
+++ b/pugl/detail/win.h
@@ -95,7 +95,8 @@ puglWinCreateWindow(const PuglView* const view,
const unsigned winExFlags = puglWinGetWindowExFlags(view);
// Calculate total window size to accommodate requested view size
- RECT wr = { 0, 0, view->width, view->height };
+ RECT wr = { (long)view->frame.x, (long)view->frame.y,
+ (long)view->frame.width, (long)view->frame.height };
AdjustWindowRectEx(&wr, winFlags, FALSE, winExFlags);
// Create window and get drawing context