[Scummvm-cvs-logs] SF.net SVN: scummvm: [23114] scummvm/trunk/engines/simon/cursor.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Jun 15 00:57:05 CEST 2006


Revision: 23114
Author:   eriktorbjorn
Date:     2006-06-14 15:56:59 -0700 (Wed, 14 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23114&view=rev

Log Message:
-----------
Fixed FF cursor hotspots, after Kirben pointed out to me two special cases that
we didn't handle. This makes he tile puzzle easier to solve. (But it's still a
terrible puzzle.)

Modified Paths:
--------------
    scummvm/trunk/engines/simon/cursor.cpp
Modified: scummvm/trunk/engines/simon/cursor.cpp
===================================================================
--- scummvm/trunk/engines/simon/cursor.cpp	2006-06-14 20:09:44 UTC (rev 23113)
+++ scummvm/trunk/engines/simon/cursor.cpp	2006-06-14 22:56:59 UTC (rev 23114)
@@ -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