aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-11-03 19:15:05 +0100
committerDavid Robillard <d@drobilla.net>2019-11-03 21:03:18 +0100
commitbe838db18af13390cb9f705d36ab83396d2dd1e6 (patch)
treeb79ae242205607374132f3f9463c35783485d67e /pugl/detail/mac.m
parentd9239872c71d117f78ce6c109cd9ab42e2d80c6b (diff)
downloadpugl-be838db18af13390cb9f705d36ab83396d2dd1e6.tar.gz
pugl-be838db18af13390cb9f705d36ab83396d2dd1e6.tar.bz2
pugl-be838db18af13390cb9f705d36ab83396d2dd1e6.zip
Remove redisplay flag and add puglPostRedisplayRect()
Diffstat (limited to 'pugl/detail/mac.m')
-rw-r--r--pugl/detail/mac.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m
index f530c2e..9378d6e 100644
--- a/pugl/detail/mac.m
+++ b/pugl/detail/mac.m
@@ -957,6 +957,15 @@ puglPostRedisplay(PuglView* view)
return PUGL_SUCCESS;
}
+PuglStatus
+puglPostRedisplayRect(PuglView* view, const PuglRect rect)
+{
+ [view->impl->drawView setNeedsDisplayInRect:
+ CGRectMake(rect.x, rect.y, rect.width, rect.height)];
+
+ return PUGL_SUCCESS;
+}
+
PuglNativeWindow
puglGetNativeWindow(PuglView* view)
{