summaryrefslogtreecommitdiff
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-28 22:00:30 +0200
committerDavid Robillard <d@drobilla.net>2014-12-16 18:31:22 -0500
commit2e07e028c1080051846b1b200493e528a8f9a5e6 (patch)
tree61db9c5aba47555204d1b054662ac1954008d256 /pugl/pugl_osx.m
parent3fa6c2c10f7d4ca06fd30e2442dcd25f492cc351 (diff)
Support minimum window size.
Conflicts: pugl/pugl_win.cpp
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 464a8a2..3b62fae 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -459,6 +459,9 @@ puglCreateWindow(PuglView* view, const char* title)
[window setPuglview:view];
[window setTitle:titleString];
+ if (view->min_width || view->min_height) {
+ [window setContentMinSize:NSMakeSize(view->min_width, view->min_height)];
+ }
impl->glview = [PuglOpenGLView new];
impl->window = window;