[Scummvm-cvs-logs] SF.net SVN: scummvm: [22278] scummvm/trunk/engines/simon/cursor.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue May 2 08:25:19 CEST 2006
Revision: 22278
Author: eriktorbjorn
Date: 2006-05-02 08:24:26 -0700 (Tue, 02 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22278&view=rev
Log Message:
-----------
Fixed FF mouse cursors being drawn a bit to the left of the hotspot. FF seems
to have this strange notion of multiplying the X coordinate by two, so when it
was using 38 to manipulate it, it really meant 19. I think.
Now we just need to simplify this to make the backend draw the cursor instead.
Modified Paths:
--------------
scummvm/trunk/engines/simon/cursor.cpp
Modified: scummvm/trunk/engines/simon/cursor.cpp
===================================================================
--- scummvm/trunk/engines/simon/cursor.cpp 2006-05-02 14:12:39 UTC (rev 22277)
+++ scummvm/trunk/engines/simon/cursor.cpp 2006-05-02 15:24:26 UTC (rev 22278)
@@ -423,10 +423,10 @@
else
dst += (((_mouseY - 19) * (pitch / 16)) & 0xffff) * 16;
- if (_mouseX < 38)
- _mouseCountX -= 38 - _mouseX;
+ if (_mouseX < 19)
+ _mouseCountX -= 19 - _mouseX;
else
- dst += _mouseX - 38;
+ dst += _mouseX - 19;
if (_mouseCountY == 40) {
_mouseCountY = 499 - _mouseY;
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