From c86f7123232493f99b2a5bdf945bb33bfe3ebc5d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 25 Jul 2019 09:29:07 +0200 Subject: Mac: Fix event Y coordinates --- pugl/pugl_osx.m | 18 +++++++++--------- 1 file 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, -- cgit v1.2.1