[Scummvm-cvs-logs] SF.net SVN: scummvm: [28765] scummvm/trunk/engines/saga/ihnm_introproc.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Aug 30 20:59:06 CEST 2007


Revision: 28765
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28765&view=rev
Author:   eriktorbjorn
Date:     2007-08-30 11:59:05 -0700 (Thu, 30 Aug 2007)

Log Message:
-----------
Make checkKey() test for EVENT_QUIT as well, so that we can quit the IHNM intro
even without using the keyboard shortcut.

Modified Paths:
--------------
    scummvm/trunk/engines/saga/ihnm_introproc.cpp

Modified: scummvm/trunk/engines/saga/ihnm_introproc.cpp
===================================================================
--- scummvm/trunk/engines/saga/ihnm_introproc.cpp	2007-08-30 18:49:02 UTC (rev 28764)
+++ scummvm/trunk/engines/saga/ihnm_introproc.cpp	2007-08-30 18:59:05 UTC (rev 28765)
@@ -135,6 +135,9 @@
 
 	while (_vm->_eventMan->pollEvent(event)) {
 		switch (event.type) {
+		case Common::EVENT_QUIT:
+			_vm->shutDown();
+			// fallthrough
 		case Common::EVENT_KEYDOWN:
 			res = true;
 			break;


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