diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-28 22:00:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-16 18:31:22 -0500 |
commit | 2e07e028c1080051846b1b200493e528a8f9a5e6 (patch) | |
tree | 61db9c5aba47555204d1b054662ac1954008d256 /pugl/pugl_osx.m | |
parent | 3fa6c2c10f7d4ca06fd30e2442dcd25f492cc351 (diff) | |
download | pugl-2e07e028c1080051846b1b200493e528a8f9a5e6.tar.gz pugl-2e07e028c1080051846b1b200493e528a8f9a5e6.tar.bz2 pugl-2e07e028c1080051846b1b200493e528a8f9a5e6.zip |
Support minimum window size.
Conflicts:
pugl/pugl_win.cpp
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 3 |
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; |