diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-02-04 10:36:16 +0100 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-02-04 10:36:16 +0100 |
commit | 7b7610f8ef31ed977aa16b70505325e9b33528b7 (patch) | |
tree | 55b0215326f41b41609ed6616846fd6193e32854 /nk_pugl/nk_pugl.h | |
parent | 12fdea1ffea351f42a72e6fb275c95598e4d9243 (diff) | |
parent | e9bcb3b73ba27fb32a0b6cc2422f99e6edd38747 (diff) | |
download | midi_matrix.lv2-7b7610f8ef31ed977aa16b70505325e9b33528b7.tar.xz |
Merge commit 'e9bcb3b73ba27fb32a0b6cc2422f99e6edd38747'
Diffstat (limited to 'nk_pugl/nk_pugl.h')
-rw-r--r-- | nk_pugl/nk_pugl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nk_pugl/nk_pugl.h b/nk_pugl/nk_pugl.h index 2d20228..79006a8 100644 --- a/nk_pugl/nk_pugl.h +++ b/nk_pugl/nk_pugl.h @@ -63,6 +63,8 @@ typedef void (*nk_pugl_expose_t)(struct nk_context *ctx, struct _nk_pugl_config_t { unsigned width; unsigned height; + unsigned min_width; + unsigned min_height; bool resizable; bool ignore; @@ -866,7 +868,7 @@ nk_pugl_init(nk_pugl_window_t *win) win->view = puglInit(NULL, NULL); puglInitWindowClass(win->view, cfg->class ? cfg->class : "nuklear"); puglInitWindowSize(win->view, cfg->width, cfg->height); - puglInitWindowMinSize(win->view, cfg->width, cfg->height); + puglInitWindowMinSize(win->view, cfg->min_width, cfg->min_height); puglInitResizable(win->view, cfg->resizable); puglInitWindowParent(win->view, cfg->parent); puglInitTransientFor(win->view, cfg->parent); |