From c4ae797351bfeacc13906265248e78e3f1dd16bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= <8659494+mhaeuser@users.noreply.github.com> Date: Tue, 2 Mar 2021 14:14:32 +0100 Subject: [PATCH] OpenCanopy: Remove redundant AE pointer clipping --- Platform/OpenCanopy/Input/InputSimAbsPtr.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Platform/OpenCanopy/Input/InputSimAbsPtr.c b/Platform/OpenCanopy/Input/InputSimAbsPtr.c index 83b99f09..f157e989 100644 --- a/Platform/OpenCanopy/Input/InputSimAbsPtr.c +++ b/Platform/OpenCanopy/Input/InputSimAbsPtr.c @@ -115,14 +115,8 @@ InternalAppleEventNotification ( EventType = Information->EventData.PointerEventType; if ((EventType & APPLE_EVENT_TYPE_MOUSE_MOVED) != 0) { - Context->X = MIN ( - (UINT32) Information->PointerPosition.Horizontal, - Context->MaxX - ); - Context->Y = MIN ( - (UINT32) Information->PointerPosition.Vertical, - Context->MaxY - ); + Context->X = (UINT32) Information->PointerPosition.Horizontal; + Context->Y = (UINT32) Information->PointerPosition.Vertical; } if ((EventType & APPLE_EVENT_TYPE_MOUSE_DOWN) != 0) { -- GitLab