diff options
| author | David Robillard <d@drobilla.net> | 2020-04-03 12:01:47 +0200 |
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2020-04-03 12:01:47 +0200 |
| commit | 8f28d8c97a8dedc240336da1ece4f4aa4207876b (patch) | |
| tree | d056c6ae9f935622d9cf0605eae42559b8eea070 | |
| parent | 13a21624221fe865a92886bd8a265e28a8b7a459 (diff) | |
Mac: Use NSMakeRect over CGRectMake
Using CGRectMake here apparently doesn't work on older versions of MacOS.
| -rw-r--r-- | pugl/detail/mac.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m index c495ee4..501be02 100644 --- a/pugl/detail/mac.m +++ b/pugl/detail/mac.m @@ -1067,7 +1067,7 @@ PuglStatus puglPostRedisplayRect(PuglView* view, const PuglRect rect) { [view->impl->drawView setNeedsDisplayInRect: - CGRectMake(rect.x, rect.y, rect.width, rect.height)]; + NSMakeRect(rect.x, rect.y, rect.width, rect.height)]; return PUGL_SUCCESS; } |
