pointer: remove dividing hotspot by scale

fixes #6117
This commit is contained in:
Vaxry 2024-05-25 20:43:29 +02:00
parent 2ff95bba3f
commit 90f262aada

View file

@ -574,7 +574,7 @@ CBox CPointerManager::getCursorBoxLogicalForMonitor(SP<CMonitor> pMonitor) {
} }
CBox CPointerManager::getCursorBoxGlobal() { CBox CPointerManager::getCursorBoxGlobal() {
return CBox{pointerPos, currentCursorImage.size / currentCursorImage.scale}.translate(-currentCursorImage.hotspot / currentCursorImage.scale); return CBox{pointerPos, currentCursorImage.size / currentCursorImage.scale}.translate(-currentCursorImage.hotspot);
} }
Vector2D CPointerManager::closestValid(const Vector2D& pos) { Vector2D CPointerManager::closestValid(const Vector2D& pos) {