aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-17 20:49:15 +0100
committerDavid Robillard <d@drobilla.net>2019-02-17 21:16:57 +0100
commit197c19b74bd26f5a7526a88621a556f551b2db5a (patch)
treec9462855439c6f9cbd9f02cd5d754e5b55a73835 /pugl/pugl_osx.m
parent51dcb00d5a5e6874f1e83d9cafb9ca2c1bd8bbf7 (diff)
downloadpugl-197c19b74bd26f5a7526a88621a556f551b2db5a.tar.gz
pugl-197c19b74bd26f5a7526a88621a556f551b2db5a.tar.bz2
pugl-197c19b74bd26f5a7526a88621a556f551b2db5a.zip
Add configuration API
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 712f5fc..8e40907 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -583,7 +583,7 @@ puglCreateWindow(PuglView* view, const char* title)
puglConstraint(impl->glview, NSLayoutAttributeWidth, view->min_width)];
[impl->glview addConstraint:
puglConstraint(impl->glview, NSLayoutAttributeHeight, view->min_height)];
- if (!view->resizable) {
+ if (!view->hints.resizable) {
[impl->glview setAutoresizingMask:NSViewNotSizable];
}
@@ -598,7 +598,7 @@ puglCreateWindow(PuglView* view, const char* title)
encoding:NSUTF8StringEncoding];
NSRect frame = NSMakeRect(0, 0, view->min_width, view->min_height);
unsigned style = NSClosableWindowMask | NSTitledWindowMask;
- if (view->resizable) {
+ if (view->hints.resizable) {
style |= NSResizableWindowMask;
}