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.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.m')
-rw-r--r-- | pugl/detail/mac.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m index 36aff9b..5b332f1 100644 --- a/pugl/detail/mac.m +++ b/pugl/detail/mac.m @@ -330,7 +330,7 @@ handleCrossing(PuglWrapperView* view, NSEvent* event, const PuglEventType type) - (void) keyDown:(NSEvent*)event { - if (puglview->hints.ignoreKeyRepeat && [event isARepeat]) { + if (puglview->hints[PUGL_IGNORE_KEY_REPEAT] && [event isARepeat]) { return; } @@ -700,7 +700,7 @@ puglCreateWindow(PuglView* view, const char* title) unsigned style = (NSClosableWindowMask | NSTitledWindowMask | NSMiniaturizableWindowMask ); - if (view->hints.resizable) { + if (view->hints[PUGL_RESIZABLE]) { style |= NSResizableWindowMask; } |