From e0f959a0f47724184cd68f1b15a56712d8f42b68 Mon Sep 17 00:00:00 2001 From: Virt <41426325+VirtCode@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:59:01 +0200 Subject: [PATCH] test: see what is calculated --- src/cursor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cursor.cpp b/src/cursor.cpp index 5abacc9..5ffa803 100644 --- a/src/cursor.cpp +++ b/src/cursor.cpp @@ -324,10 +324,14 @@ void CDynamicCursors::calculate(EModeUpdate type) { auto result = resultMode; result.scale *= resultShake; + Debug::log(LOG, "[dynamic-cursors] calculate after: rotation = {}, scale = {}, stretch.angle = {}, stretch.x = {}, stretch.y = {}", result.rotation, result.scale, result.stretch.angle, result.stretch.magnitude.x, result.stretch.magnitude.y); + if (resultShown.hasDifference(&result, **PTHRESHOLD * (PI / 180.0), 0.01, 0.01)) { resultShown = result; resultShown.clamp(**PTHRESHOLD * (PI / 180.0), 0.01, 0.01); // clamp low values so it is rendered pixel-perfectly when no effect + Debug::log(LOG, "[dynamic-cursors] calculate clamped: rotation = {}, scale = {}, stretch.angle = {}, stretch.x = {}, stretch.y = {}", resultShown.rotation, resultShown.scale, resultShown.stretch.angle, resultShown.stretch.magnitude.x, resultShown.stretch.magnitude.y); + // lock software cursors if zooming if (resultShown.scale > 1) { if (!zoomSoftware) {