diff options
author | David Robillard <d@drobilla.net> | 2023-05-12 17:06:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-12 17:08:24 -0400 |
commit | f3c8f336fa6a702dc680769d079aa5c4b4e2a645 (patch) | |
tree | fe0621b2d4dc2c33d6ccd950faad674321b50561 | |
parent | 8f6149b04b6e373987b9fac40673fc98d028998a (diff) | |
download | pugl-f3c8f336fa6a702dc680769d079aa5c4b4e2a645.tar.gz pugl-f3c8f336fa6a702dc680769d079aa5c4b4e2a645.tar.bz2 pugl-f3c8f336fa6a702dc680769d079aa5c4b4e2a645.zip |
MacOS: Fix inverted puglPostRedisplay() coordinates
-rw-r--r-- | src/mac.m | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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)]; |