https://github.com/libsdl-org/Maelstrom/commit/48d9873ca060ff836940eb88aa7da79819516f6f
From 48d9873ca060ff836940eb88aa7da79819516f6f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 15 Nov 2011 01:46:26 -0500
Subject: [PATCH] Fixed coordinate transform for touch input
---
screenlib/SDL_FrameBuf.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
index 0c008b46..a7f6a2fc 100644
--- a/screenlib/SDL_FrameBuf.cpp
+++ b/screenlib/SDL_FrameBuf.cpp
@@ -124,6 +124,7 @@ FrameBuf::ConvertTouchCoordinates(const SDL_TouchFingerEvent &finger, int *x, in
SDL_GetWindowSize(window, &w, &h);
*x = (int)((((float)finger.x)/inTouch->xres)*w) - rect.x;
*y = (int)((((float)finger.y)/inTouch->yres)*h) - rect.y;
+ AdjustCoordinates(*x, *y, true);
return true;
}