From 3503be620a771e3a774fc0a3561d111c57f90cdd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Sat, 14 Feb 2026 09:40:36 +0100 Subject: [PATCH] [client,sdl] log cursor scale --- client/SDL/SDL3/sdl_pointer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/SDL/SDL3/sdl_pointer.cpp b/client/SDL/SDL3/sdl_pointer.cpp index 07d95a510..c7aeb94a2 100644 --- a/client/SDL/SDL3/sdl_pointer.cpp +++ b/client/SDL/SDL3/sdl_pointer.cpp @@ -127,7 +127,10 @@ bool sdl_Pointer_Set_Process(SdlContext* sdl) const Uint32 id = SDL_GetWindowID(window); - auto pos = sdl->pixelToScreen(id, SDL_FRect{ ix, iy, isw, ish }); + const SDL_FRect orig{ ix, iy, isw, ish }; + auto pos = sdl->pixelToScreen(id, orig); + WLog_Print(sdl->getWLog(), WLOG_DEBUG, "cursor scale: pixel:%s, display:%s", + sdl::utils::toString(orig).c_str(), sdl::utils::toString(pos).c_str()); sdl_Pointer_Clear(ptr);