fix: don't render sw when lock is negative

ref #13
This commit is contained in:
Virt 2024-07-22 20:20:47 +02:00
commit f83004ad07

View file

@ -62,7 +62,7 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
auto state = pointers->stateFor(pMonitor); auto state = pointers->stateFor(pMonitor);
auto zoom = resultShown.scale; auto zoom = resultShown.scale;
if ((!state->hardwareFailed && state->softwareLocks == 0)) { if ((!state->hardwareFailed && state->softwareLocks <= 0)) {
if (pointers->currentCursorImage.surface) if (pointers->currentCursorImage.surface)
pointers->currentCursorImage.surface->resource()->frame(now); pointers->currentCursorImage.surface->resource()->frame(now);