diff options
author | David Robillard <d@drobilla.net> | 2019-07-25 09:29:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-25 10:26:19 +0200 |
commit | c86f7123232493f99b2a5bdf945bb33bfe3ebc5d (patch) | |
tree | a08d3e578df40f165933da59213c190b2ea8e1bf | |
parent | 27dbe9421e63e253afd6ba9885d7988220be605f (diff) |
Mac: Fix event Y coordinates
-rw-r--r-- | pugl/pugl_osx.m | 18 |
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, |