mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
test: see what is calculated
This commit is contained in:
parent
527804e49c
commit
e0f959a0f4
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue