[Scummvm-cvs-logs] SF.net SVN: scummvm: [23115] scummvm/branches/branch-0-9-0/engines/simon/cursor.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Thu Jun 15 00:57:54 CEST 2006
Revision: 23115
Author: eriktorbjorn
Date: 2006-06-14 15:57:49 -0700 (Wed, 14 Jun 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23115&view=rev
Log Message:
-----------
Backported FF cursor hotspot fixes, to make the tile puzzle more bearable.
Modified Paths:
--------------
scummvm/branches/branch-0-9-0/engines/simon/cursor.cpp
Modified: scummvm/branches/branch-0-9-0/engines/simon/cursor.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/simon/cursor.cpp 2006-06-14 22:56:59 UTC (rev 23114)
+++ scummvm/branches/branch-0-9-0/engines/simon/cursor.cpp 2006-06-14 22:57:49 UTC (rev 23115)
@@ -435,7 +435,21 @@
offs = cursor * 32 + _mouseAnim * 2;
drawMousePart(image, _mouseOffs[offs], _mouseOffs[offs + 1]);
- CursorMan.replaceCursor(_mouseData, kMaxCursorWidth, kMaxCursorHeight, 19, 19, 0);
+ int hotspotX = 19;
+ int hotspotY = 19;
+
+ if (_mouseCursor == 14) {
+ // Finger pointing away from screen. Not sure where
+ // this is used.
+ hotspotX += 4;
+ hotspotY -= 6;
+ } else if (_mouseCursor == 15) {
+ // Finger pointing down. Used for the oh-so-annoying
+ // Cygnus Alpha tile puzzle.
+ hotspotY += 18;
+ }
+
+ CursorMan.replaceCursor(_mouseData, kMaxCursorWidth, kMaxCursorHeight, hotspotX, hotspotY, 0);
}
}
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