aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-25 09:29:07 +0200
committerDavid Robillard <d@drobilla.net>2019-07-25 10:26:19 +0200
commitc86f7123232493f99b2a5bdf945bb33bfe3ebc5d (patch)
treea08d3e578df40f165933da59213c190b2ea8e1bf
parent27dbe9421e63e253afd6ba9885d7988220be605f (diff)
Mac: Fix event Y coordinates
-rw-r--r--pugl/pugl_osx.m18
1 files changed, 9 insertions, 9 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 21684ea..7a171f8 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -293,7 +293,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- view->puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(view->puglview, event),
@@ -321,7 +321,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -355,7 +355,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -373,7 +373,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -411,7 +411,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -440,7 +440,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -470,7 +470,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -565,7 +565,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
getModifiers(puglview, event),
@@ -606,7 +606,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type)
0,
[event timestamp],
wloc.x,
- puglview->height - wloc.y,
+ wloc.y,
rloc.x,
[[NSScreen mainScreen] frame].size.height - rloc.y,
mods,