fix: screencopy cursor position like hl

81cd526f92
yes, almost forgot that I also have to implement the fix here, not just
upstream
This commit is contained in:
Virt 2025-05-24 00:15:05 +02:00
commit 761acf0e60

View file

@ -76,10 +76,17 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
return;
}
// don't render cursor if forced but we are already using sw cursors for the monitor
// otherwise we draw the cursor again for screencopy when using sw cursors
if (forceRender && (state->hardwareFailed || state->softwareLocks != 0))
return;
auto box = state->box.copy();
if (overridePos.has_value()) {
box.x = overridePos->x;
box.y = overridePos->y;
box.translate(-pointers->m_currentCursorImage.hotspot);
}
auto texture = pointers->getCurrentCursorTexture();