mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
parent
55e8b316ce
commit
5bd0afd654
1 changed files with 4 additions and 1 deletions
|
@ -84,13 +84,16 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
|
||||||
if (!texture)
|
if (!texture)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
box.scale(pMonitor->scale);
|
|
||||||
box.w *= zoom;
|
box.w *= zoom;
|
||||||
box.h *= zoom;
|
box.h *= zoom;
|
||||||
|
|
||||||
if (box.intersection(CBox{{}, {pMonitor->vecSize}}).empty())
|
if (box.intersection(CBox{{}, {pMonitor->vecSize}}).empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
box.scale(pMonitor->scale);
|
||||||
|
box.x = std::round(box.x);
|
||||||
|
box.y = std::round(box.y);
|
||||||
|
|
||||||
// we rotate the cursor by our calculated amount
|
// we rotate the cursor by our calculated amount
|
||||||
box.rot = resultShown.rotation;
|
box.rot = resultShown.rotation;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue