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

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sat Sep 29 07:46:57 CEST 2007


Revision: 29127
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29127&view=rev
Author:   eriktorbjorn
Date:     2007-09-28 22:46:57 -0700 (Fri, 28 Sep 2007)

Log Message:
-----------
Allow the user to change scalers, fullscreen mode, etc. without terminating the
IHNM intro. In other words, don't terminate the intro just because the user
presses a modifier key. The original didn't either.

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-09-28 21:30:05 UTC (rev 29126)
+++ scummvm/trunk/engines/saga/ihnm_introproc.cpp	2007-09-29 05:46:57 UTC (rev 29127)
@@ -141,10 +141,15 @@
 	while (_vm->_eventMan->pollEvent(event)) {
 		switch (event.type) {
 		case Common::EVENT_QUIT:
+			res = true;
 			_vm->shutDown();
-			// fallthrough
+			break;
 		case Common::EVENT_KEYDOWN:
-			res = true;
+			// Don't react to modifier keys alone. The original did
+			// non, and the user may want to change scaler without
+			// terminating the intro.
+			if (event.kbd.ascii)
+				res = true;
 			break;
 		default:
 			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