[Scummvm-cvs-logs] SF.net SVN: scummvm:[45138] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Fri Oct 16 01:58:13 CEST 2009


Revision: 45138
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45138&view=rev
Author:   peres001
Date:     2009-10-15 23:58:13 +0000 (Thu, 15 Oct 2009)

Log Message:
-----------
Fixed bug 2879795. Ensure cursor is visible after save/load dialog and debugger are closed.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/debug.cpp
    scummvm/trunk/engines/parallaction/debug.h
    scummvm/trunk/engines/parallaction/parallaction_ns.cpp
    scummvm/trunk/engines/parallaction/saveload.cpp

Modified: scummvm/trunk/engines/parallaction/debug.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/debug.cpp	2009-10-15 23:57:13 UTC (rev 45137)
+++ scummvm/trunk/engines/parallaction/debug.cpp	2009-10-15 23:58:13 UTC (rev 45138)
@@ -51,10 +51,13 @@
 
 
 void Debugger::preEnter() {
+	_mouseState = _vm->_input->getMouseState();
 }
 
 
 void Debugger::postEnter() {
+	_vm->_input->setMouseState(_mouseState);
+	_vm->_input->setArrowCursor();	// unselects the active item, if any
 }
 
 bool Debugger::Cmd_Location(int argc, const char **argv) {

Modified: scummvm/trunk/engines/parallaction/debug.h
===================================================================
--- scummvm/trunk/engines/parallaction/debug.h	2009-10-15 23:57:13 UTC (rev 45137)
+++ scummvm/trunk/engines/parallaction/debug.h	2009-10-15 23:58:13 UTC (rev 45138)
@@ -3,6 +3,7 @@
 #define PARALLACTION_DEBUGGER_H
 
 #include "gui/debugger.h"
+#include "parallaction/input.h"
 
 namespace Parallaction {
 
@@ -15,6 +16,7 @@
 
 protected:
 	Parallaction *_vm;
+	MouseTriState _mouseState;
 
 	virtual void preEnter();
 	virtual void postEnter();

Modified: scummvm/trunk/engines/parallaction/parallaction_ns.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_ns.cpp	2009-10-15 23:57:13 UTC (rev 45137)
+++ scummvm/trunk/engines/parallaction/parallaction_ns.cpp	2009-10-15 23:58:13 UTC (rev 45138)
@@ -267,6 +267,7 @@
 	}
 
 	_input->setArrowCursor();
+	_input->setMouseState(MOUSE_ENABLED_SHOW);
 
 	return c;
 }

Modified: scummvm/trunk/engines/parallaction/saveload.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/saveload.cpp	2009-10-15 23:57:13 UTC (rev 45137)
+++ scummvm/trunk/engines/parallaction/saveload.cpp	2009-10-15 23:58:13 UTC (rev 45138)
@@ -255,8 +255,6 @@
 	GUI::TimedMessageDialog dialog("Loading game...", 1500);
 	dialog.runModal();
 
-	_vm->_input->setArrowCursor();
-
 	return true;
 }
 


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