aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mac.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mac.m b/src/mac.m
index c202ef6..ef0a730 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1643,7 +1643,11 @@ puglPostRedisplay(PuglView* view)
PuglStatus
puglPostRedisplayRect(PuglView* view, const PuglRect rect)
{
- const NSRect rectPx = rectToNsRect(rect);
+ const NSRect rectPx = {
+ {(double)rect.x,
+ (double)view->lastConfigure.height - (rect.y + rect.height)},
+ {(double)rect.width, (double)rect.height},
+ };
[view->impl->drawView setNeedsDisplayInRect:nsRectToPoints(view, rectPx)];