aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-21 20:37:01 +0200
committerDavid Robillard <d@drobilla.net>2019-07-21 21:32:57 +0200
commit7a5dcae7932847a1bf2e00264c6eec156ca1c639 (patch)
tree14865d57f0232e340a8d9abca2a65e47f0de543b /pugl/pugl_win.c
parent80191fb070d60e7bffd78c2ef9e43b2610f2b8ff (diff)
downloadpugl-7a5dcae7932847a1bf2e00264c6eec156ca1c639.tar.gz
pugl-7a5dcae7932847a1bf2e00264c6eec156ca1c639.tar.bz2
pugl-7a5dcae7932847a1bf2e00264c6eec156ca1c639.zip
Show minimize and maximize buttons on top level windows on Windows
Diffstat (limited to 'pugl/pugl_win.c')
-rw-r--r--pugl/pugl_win.c6
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 };