[Scummvm-cvs-logs] SF.net SVN: scummvm:[51339] scummvm/branches/gsoc2010-opengl/backends/ graphics/opengl/opengl-graphics.cpp

vgvgf at users.sourceforge.net vgvgf at users.sourceforge.net
Tue Jul 27 02:31:36 CEST 2010


Revision: 51339
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51339&view=rev
Author:   vgvgf
Date:     2010-07-27 00:31:36 +0000 (Tue, 27 Jul 2010)

Log Message:
-----------
OPENGL: Fix cursor scaling in overlay.

Modified Paths:
--------------
    scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/opengl-graphics.cpp

Modified: scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/opengl-graphics.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/opengl-graphics.cpp	2010-07-27 00:30:37 UTC (rev 51338)
+++ scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/opengl-graphics.cpp	2010-07-27 00:31:36 UTC (rev 51339)
@@ -813,10 +813,10 @@
 		_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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list