From da65c47245868e12f71ee2b258807f16d6868b3e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 20 Jan 2021 02:06:17 +1100 Subject: [PATCH] [client] spice: fix transposed cursor scale calculations --- client/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 73e177df..7725b025 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -258,8 +258,8 @@ static void updatePositionInfo(void) srcW != g_state.dstRect.w || g_cursor.guest.dpiScale != 100); - g_cursor.scale.x = (float)srcH / (float)g_state.dstRect.h; - g_cursor.scale.y = (float)srcW / (float)g_state.dstRect.w; + g_cursor.scale.x = (float)srcW / (float)g_state.dstRect.w; + g_cursor.scale.y = (float)srcH / (float)g_state.dstRect.h; g_cursor.dpiScale = g_cursor.guest.dpiScale / 100.0f; if (!g_state.posInfoValid)