aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index a115878e53..b3808a75ee 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -813,10 +813,10 @@ void OpenGLGraphicsManager::refreshCursorScale() {
_cursorState.rHotY = _cursorState.hotY;
} else {
// Otherwise, scale the cursor for the overlay
- _cursorState.rW = _cursorState.w * scaleFactor;
- _cursorState.rH = _cursorState.h * scaleFactor;
- _cursorState.rHotX = _cursorState.hotX * scaleFactor;
- _cursorState.rHotY = _cursorState.hotY * scaleFactor;
+ _cursorState.rW = _cursorState.w * (scaleFactor - _cursorTargetScale + 1);
+ _cursorState.rH = _cursorState.h * (scaleFactor - _cursorTargetScale + 1);
+ _cursorState.rHotX = _cursorState.hotX * (scaleFactor - _cursorTargetScale + 1);
+ _cursorState.rHotY = _cursorState.hotY * (scaleFactor - _cursorTargetScale + 1);
}
// Always scale the cursor for the game