test: see what is calculated

This commit is contained in:
Virt 2024-07-11 09:59:01 +02:00
commit e0f959a0f4

View file

@ -324,10 +324,14 @@ void CDynamicCursors::calculate(EModeUpdate type) {
auto result = resultMode; auto result = resultMode;
result.scale *= resultShake; 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)) { if (resultShown.hasDifference(&result, **PTHRESHOLD * (PI / 180.0), 0.01, 0.01)) {
resultShown = result; resultShown = result;
resultShown.clamp(**PTHRESHOLD * (PI / 180.0), 0.01, 0.01); // clamp low values so it is rendered pixel-perfectly when no effect 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 // lock software cursors if zooming
if (resultShown.scale > 1) { if (resultShown.scale > 1) {
if (!zoomSoftware) { if (!zoomSoftware) {