[Scummvm-cvs-logs] SF.net SVN: scummvm: [26360] scummvm/trunk/engines/touche

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Apr 1 20:08:20 CEST 2007


Revision: 26360
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26360&view=rev
Author:   fingolfin
Date:     2007-04-01 11:08:19 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
Replaced another use of getEventManager() by using Engine::_eventMan

Modified Paths:
--------------
    scummvm/trunk/engines/touche/touche.cpp
    scummvm/trunk/engines/touche/ui.cpp

Modified: scummvm/trunk/engines/touche/touche.cpp
===================================================================
--- scummvm/trunk/engines/touche/touche.cpp	2007-04-01 18:05:11 UTC (rev 26359)
+++ scummvm/trunk/engines/touche/touche.cpp	2007-04-01 18:08:19 UTC (rev 26360)
@@ -285,8 +285,7 @@
 
 void ToucheEngine::processEvents(bool handleKeyEvents) {
 	Common::Event event;
-	Common::EventManager *eventMan = _system->getEventManager();
-	while (eventMan->pollEvent(event)) {
+	while (_eventMan->pollEvent(event)) {
 		switch (event.type) {
 		case Common::EVENT_QUIT:
 			_flagsTable[611] = 1;

Modified: scummvm/trunk/engines/touche/ui.cpp
===================================================================
--- scummvm/trunk/engines/touche/ui.cpp	2007-04-01 18:05:11 UTC (rev 26359)
+++ scummvm/trunk/engines/touche/ui.cpp	2007-04-01 18:08:19 UTC (rev 26360)
@@ -379,8 +379,7 @@
 				}
 			}
 			Common::Event event;
-			Common::EventManager *eventMan = _system->getEventManager();
-			while (eventMan->pollEvent(event)) {
+			while (_eventMan->pollEvent(event)) {
 				const Button *button = 0;
 				switch (event.type) {
 				case Common::EVENT_QUIT:
@@ -546,8 +545,7 @@
 	bool quitLoop = false;
 	while (!quitLoop) {
 		Common::Event event;
-		Common::EventManager *eventMan = _system->getEventManager();
-		while (eventMan->pollEvent(event)) {
+		while (_eventMan->pollEvent(event)) {
 			switch (event.type) {
 			case Common::EVENT_QUIT:
 				quitLoop = 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