aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac_cairo.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-03 16:14:54 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commite3b2f305b98747c84fd87eb97e3fa8516acecbfb (patch)
tree784892b7d0a488422a8f53e0be974d2864506148 /pugl/detail/mac_cairo.m
parent0706f4a121f6f9c5b96a19c4272a8636fc230cbc (diff)
downloadpugl-e3b2f305b98747c84fd87eb97e3fa8516acecbfb.tar.gz
pugl-e3b2f305b98747c84fd87eb97e3fa8516acecbfb.tar.bz2
pugl-e3b2f305b98747c84fd87eb97e3fa8516acecbfb.zip
Simplify hints implementation
Diffstat (limited to 'pugl/detail/mac_cairo.m')
-rw-r--r--pugl/detail/mac_cairo.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/detail/mac_cairo.m b/pugl/detail/mac_cairo.m
index 1f4452f..ce03486 100644
--- a/pugl/detail/mac_cairo.m
+++ b/pugl/detail/mac_cairo.m
@@ -75,7 +75,7 @@ puglMacCairoCreate(PuglView* view)
drawView->puglview = view;
[drawView initWithFrame:NSMakeRect(0, 0, view->width, view->height)];
- if (view->hints.resizable) {
+ if (view->hints[PUGL_RESIZABLE]) {
[drawView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
} else {
[drawView setAutoresizingMask:NSViewNotSizable];