From a2a185a95b8ed437b1d86ca2d8b46a9cd6294cae Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 6 Aug 2026 14:00:42 +1000 Subject: [PATCH] [client] input: fix rotated cursor scaling --- client/src/util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/util.c b/client/src/util.c index 832fa42d..02b58ae1 100644 --- a/client/src/util.c +++ b/client/src/util.c @@ -414,9 +414,9 @@ void util_localCurToGuest(struct DoublePoint *guest) break; case LG_ROTATE_90: - guest->x = (point.y - g_state.dstRect.y) * g_cursor.scale.y; + guest->x = (point.y - g_state.dstRect.y) * g_cursor.scale.x; guest->y = (g_state.dstRect.w - point.x + g_state.dstRect.x) - * g_cursor.scale.x; + * g_cursor.scale.y; break; case LG_ROTATE_180: @@ -428,8 +428,8 @@ void util_localCurToGuest(struct DoublePoint *guest) case LG_ROTATE_270: guest->x = (g_state.dstRect.h - point.y + g_state.dstRect.y) - * g_cursor.scale.y; - guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.x; + * g_cursor.scale.x; + guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.y; break; default: