diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-02-04 10:34:04 +0100 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-02-04 10:34:04 +0100 |
commit | e9bcb3b73ba27fb32a0b6cc2422f99e6edd38747 (patch) | |
tree | 2c92bb9175fae4a696c9228f7813977511ba9481 | |
parent | bcd82b8b2bb6f2eebe647e42e513df56c2bc8bcf (diff) | |
download | sherlock.lv2-e9bcb3b73ba27fb32a0b6cc2422f99e6edd38747.tar.xz |
add min_width/height to config.
-rw-r--r-- | nk_pugl.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |