From e9bcb3b73ba27fb32a0b6cc2422f99e6edd38747 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sat, 4 Feb 2017 10:34:04 +0100 Subject: add min_width/height to config. --- nk_pugl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nk_pugl.h b/nk_pugl.h index 2d20228..79006a8 100644 --- a/nk_pugl.h +++ b/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); -- cgit v1.2.1