diff options
author | David Robillard <d@drobilla.net> | 2024-07-13 16:05:29 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-13 16:05:29 -0400 |
commit | d5959095d8ea8e3adfa661f622d7f1d2c2771c49 (patch) | |
tree | cb922c8ff46b804db3a22bde4d68f01aad933b18 /src | |
parent | 143861758f472340d887978f1afb1b1d3a5130bc (diff) | |
download | pugl-d5959095d8ea8e3adfa661f622d7f1d2c2771c49.tar.gz pugl-d5959095d8ea8e3adfa661f622d7f1d2c2771c49.tar.bz2 pugl-d5959095d8ea8e3adfa661f622d7f1d2c2771c49.zip |
MacOS: Fix expose event coordinates
Diffstat (limited to 'src')
-rw-r--r-- | src/mac.m | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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), }; |