mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
feat: new shake to find behaviour
This commit is contained in:
parent
eabab33f00
commit
553dc93cc0
6 changed files with 118 additions and 37 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue