fix: disappearing sw cursors on scaled monitors

fixes #21
This commit is contained in:
Virt 2024-09-14 15:34:50 +02:00
commit 5bd0afd654

View file

@ -84,13 +84,16 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
if (!texture)
return;
box.scale(pMonitor->scale);
box.w *= zoom;
box.h *= zoom;
if (box.intersection(CBox{{}, {pMonitor->vecSize}}).empty())
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
box.rot = resultShown.rotation;