aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mac.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mac.m b/src/mac.m
index cf7e8d2..abbbf34 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -326,11 +326,14 @@ dispatchCurrentChildViewConfiguration(PuglView* const view)
return;
}
+ const double viewY = (double)puglview->lastConfigure.height -
+ ((rect.origin.y + rect.size.height) * scaleFactor);
+
const PuglExposeEvent ev = {
PUGL_EXPOSE,
0,
(PuglCoord)(rect.origin.x * scaleFactor),
- (PuglCoord)(rect.origin.y * scaleFactor),
+ (PuglCoord)viewY,
(PuglSpan)(rect.size.width * scaleFactor),
(PuglSpan)(rect.size.height * scaleFactor),
};