[Scummvm-cvs-logs] SF.net SVN: scummvm:[49874] scummvm/trunk/engines/sci/graphics/cursor.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Tue Jun 15 19:41:33 CEST 2010


Revision: 49874
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49874&view=rev
Author:   m_kiewitz
Date:     2010-06-15 17:41:33 +0000 (Tue, 15 Jun 2010)

Log Message:
-----------
SCI: only set mouse position, when cursor is visible (fixes non-stop, but escapeable mouse position setting to 0, 0 in eco quest 1 floppy during intro)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/cursor.cpp

Modified: scummvm/trunk/engines/sci/graphics/cursor.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/cursor.cpp	2010-06-15 17:34:26 UTC (rev 49873)
+++ scummvm/trunk/engines/sci/graphics/cursor.cpp	2010-06-15 17:41:33 UTC (rev 49874)
@@ -259,6 +259,13 @@
 }
 
 void GfxCursor::setPosition(Common::Point pos) {
+	// Don't set position, when cursor is not visible
+	//  This fixes eco quest 1 (floppy) right at the start, which is setting mouse cursor to 0, 0 all the time during the
+	//  intro. It's escapeable (now) by moving to the left or top, but it's getting on your nerves.
+	//  This could theoretically break some things, although sierra normally sets position only when showing the cursor.
+	if (!_isVisible)
+		return;
+
 	if (!_upscaledHires) {
 		g_system->warpMouse(pos.x, pos.y);
 	} else {


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