diff options
author | David Robillard <d@drobilla.net> | 2019-08-03 16:14:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:32:16 +0200 |
commit | e3b2f305b98747c84fd87eb97e3fa8516acecbfb (patch) | |
tree | 784892b7d0a488422a8f53e0be974d2864506148 /pugl/detail/mac_cairo.m | |
parent | 0706f4a121f6f9c5b96a19c4272a8636fc230cbc (diff) | |
download | pugl-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.m | 2 |
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]; |