aboutsummaryrefslogtreecommitdiff
path: root/nk_pugl
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-04 10:34:54 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-04 10:34:54 +0100
commit5f51c6a6fad4c09bc0b89272888f496ae2c2dc5d (patch)
tree14e3ce2f09c19a15a7e6fda6bc7ab824b0df7c9a /nk_pugl
parent9a254309543afee89ccccf1b66a0a096dcda48d1 (diff)
parente9bcb3b73ba27fb32a0b6cc2422f99e6edd38747 (diff)
downloadsynthpod-5f51c6a6fad4c09bc0b89272888f496ae2c2dc5d.tar.xz
Merge commit 'e9bcb3b73ba27fb32a0b6cc2422f99e6edd38747' into nk
Diffstat (limited to 'nk_pugl')
-rw-r--r--nk_pugl/nk_pugl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/nk_pugl/nk_pugl.h b/nk_pugl/nk_pugl.h
index 0b75306a..12307257 100644
--- a/nk_pugl/nk_pugl.h
+++ b/nk_pugl/nk_pugl.h
@@ -67,6 +67,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;
@@ -874,7 +876,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);