feat: new shake to find behaviour

This commit is contained in:
Virt 2024-08-25 20:00:16 +02:00
commit 553dc93cc0
6 changed files with 118 additions and 37 deletions

View file

@ -80,9 +80,6 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
box.x = box.x + pointers->currentCursorImage.hotspot.x - pointers->currentCursorImage.hotspot.x * zoom;
box.y = box.y + pointers->currentCursorImage.hotspot.y - pointers->currentCursorImage.hotspot.y * zoom;
if (box.intersection(CBox{{}, {pMonitor->vecSize}}).empty())
return;
auto texture = pointers->getCurrentCursorTexture();
if (!texture)
return;
@ -91,6 +88,9 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
box.w *= zoom;
box.h *= zoom;
if (box.intersection(CBox{{}, {pMonitor->vecSize}}).empty())
return;
// we rotate the cursor by our calculated amount
box.rot = resultShown.rotation;