[Scummvm-cvs-logs] SF.net SVN: scummvm:[34977] scummvm/trunk/engines/sword2/sword2.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Nov 9 21:35:06 CET 2008


Revision: 34977
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34977&view=rev
Author:   eriktorbjorn
Date:     2008-11-09 20:35:06 +0000 (Sun, 09 Nov 2008)

Log Message:
-----------
Only hide the cursor for in-game pausing. Pausing from the outside is assumed to
bring up the GUI, which has its own cursor. (This fixes the cursor disappearing
when pausing on one of the engine's own dialog windows.)

Modified Paths:
--------------
    scummvm/trunk/engines/sword2/sword2.cpp

Modified: scummvm/trunk/engines/sword2/sword2.cpp
===================================================================
--- scummvm/trunk/engines/sword2/sword2.cpp	2008-11-09 20:34:52 UTC (rev 34976)
+++ scummvm/trunk/engines/sword2/sword2.cpp	2008-11-09 20:35:06 UTC (rev 34977)
@@ -748,6 +748,10 @@
 	if (pause == _gamePaused)
 		return;
 
+	// We don't need to hide the cursor for outside pausing. Not as long
+	// as it replaces the cursor with the GUI cursor, at least.
+
+	_mouse->pauseEngine(pause);
 	pauseEngineIntern(pause);
 
 	if (pause) {
@@ -775,12 +779,10 @@
 
 	if (pause) {
 		_sound->pauseAllSound();
-		_mouse->pauseEngine(true);
 		_logic->pauseMovie(true);
 		_screen->pauseScreen(true);
 		_gamePaused = true;
 	} else {
-		_mouse->pauseEngine(false);
 		_logic->pauseMovie(false);
 		_screen->pauseScreen(false);
 		_sound->unpauseAllSound();


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