From 78f42494963dba434be65b5041f577517088f8a1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 23 Feb 2021 20:01:26 +1100 Subject: [PATCH] [client] core: remove unnecessary warp and update of cursor location As we now are using our own backends instead of SDL, there is no longer any need to warp back to the center of the window when in autoCapture mode. This breaks the SDL ds backend behaviour, however as SDL is planned to be removed this is not an issue. --- client/src/core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index 60918aa3..2bd7fa53 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -479,11 +479,7 @@ void core_handleMouseNormal(double ex, double ey) { g_cursor.delta.x = 0; g_cursor.delta.y = 0; - core_warpPointer(g_state.windowCX, g_state.windowCY, false); } - - g_cursor.guest.x = g_state.srcSize.x / 2; - g_cursor.guest.y = g_state.srcSize.y / 2; } else {