From 126fe84d3d0ef923d89cadcba229643856c229e5 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Tue, 27 Jul 2010 00:31:36 +0000 Subject: OPENGL: Fix cursor scaling in overlay. svn-id: r51339 --- backends/graphics/opengl/opengl-graphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backends/graphics/opengl') 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 -- cgit v1.2.3