diff options
Diffstat (limited to 'pugl/pugl_win.c')
-rw-r--r-- | pugl/pugl_win.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c index c91d383..a5cb6cc 100644 --- a/pugl/pugl_win.c +++ b/pugl/pugl_win.c @@ -207,9 +207,11 @@ puglCreateWindow(PuglView* view, const char* title) } // Calculate window flags - unsigned winFlags = view->parent ? WS_CHILD : WS_POPUPWINDOW | WS_CAPTION; + unsigned winFlags = (view->parent + ? WS_CHILD + : (WS_POPUPWINDOW | WS_CAPTION | WS_MINIMIZEBOX)); if (view->hints.resizable) { - winFlags |= WS_SIZEBOX; + winFlags |= WS_SIZEBOX | WS_MAXIMIZEBOX; if (view->min_width || view->min_height) { // Adjust the minimum window size to accomodate requested view size RECT mr = { 0, 0, view->min_width, view->min_height }; |