diff options
author | Alejandro Marzini | 2010-07-27 00:31:36 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-07-27 00:31:36 +0000 |
commit | 126fe84d3d0ef923d89cadcba229643856c229e5 (patch) | |
tree | d4e649100952fc2f999b27033df9c19633c67b51 /backends/graphics/opengl/opengl-graphics.cpp | |
parent | f7220cfea72840b39e74a00048c5c1c3f3351599 (diff) | |
download | scummvm-rg350-126fe84d3d0ef923d89cadcba229643856c229e5.tar.gz scummvm-rg350-126fe84d3d0ef923d89cadcba229643856c229e5.tar.bz2 scummvm-rg350-126fe84d3d0ef923d89cadcba229643856c229e5.zip |
OPENGL: Fix cursor scaling in overlay.
svn-id: r51339
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 8 |
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 |