[Scummvm-cvs-logs] SF.net SVN: scummvm:[38183] scummvm/trunk/engines/drascula/sound.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sat Feb 14 23:46:55 CET 2009


Revision: 38183
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38183&view=rev
Author:   wjpalenstijn
Date:     2009-02-14 22:46:54 +0000 (Sat, 14 Feb 2009)

Log Message:
-----------
ignore any keypresses in the volume control dialog

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/sound.cpp

Modified: scummvm/trunk/engines/drascula/sound.cpp
===================================================================
--- scummvm/trunk/engines/drascula/sound.cpp	2009-02-14 21:50:13 UTC (rev 38182)
+++ scummvm/trunk/engines/drascula/sound.cpp	2009-02-14 22:46:54 UTC (rev 38183)
@@ -72,6 +72,10 @@
 
 		updateEvents();
 
+		// we're ignoring keypresses, so just empty the keyboard buffer
+		while (getScan())
+			;
+
 		if (rightMouseButton == 1) {
 			delay(100);
 			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