From 1131682665523049db1ea8bb5edf00eaa0c7a39f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Apr 2025 03:34:27 +0000 Subject: [PATCH] Cleanup: use wl_fixed_t for high precision cursor position This was already done for the most-part. --- intern/ghost/intern/GHOST_SystemWayland.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index 093151edef6..04b32219339 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -8192,7 +8192,7 @@ static GHOST_TSuccess getCursorPositionClientRelative_impl( if (win->getCursorGrabBounds(wrap_bounds) == GHOST_kFailure) { win->getClientBounds(wrap_bounds); } - int xy_wrap[2] = { + wl_fixed_t xy_wrap[2] = { seat_state_pointer->xy[0], seat_state_pointer->xy[1], }; @@ -9406,14 +9406,14 @@ bool GHOST_SystemWayland::window_cursor_grab_set(const GHOST_TGrabCursorMode mod } if (seat->wp.locked_pointer) { /* Potentially add a motion event so the application has updated X/Y coordinates. */ - int32_t xy_motion[2] = {0, 0}; + wl_fixed_t xy_motion[2] = {0, 0}; bool xy_motion_create_event = false; /* Request location to restore to. */ if (mode_current == GHOST_kGrabWrap) { /* Since this call is initiated by Blender, we can be sure the window wasn't closed * by logic outside this function - as the window was needed to make this call. */ - int32_t xy_next[2] = {UNPACK2(seat->pointer.xy)}; + wl_fixed_t xy_next[2] = {UNPACK2(seat->pointer.xy)}; GHOST_Rect bounds_scale;