aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorGregory Montoir2007-04-01 17:36:13 +0000
committerGregory Montoir2007-04-01 17:36:13 +0000
commit5aca9dce8c6cce89df3147a6f942620155010c8d (patch)
tree28dbee0d5addb8e49c839e5eba11733b0fe26fa5 /engines/agi
parent852971cfe62b59ff1f2e7451402a34fa6f8db958 (diff)
downloadscummvm-rg350-5aca9dce8c6cce89df3147a6f942620155010c8d.tar.gz
scummvm-rg350-5aca9dce8c6cce89df3147a6f942620155010c8d.tar.bz2
scummvm-rg350-5aca9dce8c6cce89df3147a6f942620155010c8d.zip
added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it.
svn-id: r26357
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/agi.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index be46647b58..626ba8f7fe 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -61,8 +61,7 @@ void AgiEngine::processEvents() {
Common::Event event;
int key = 0;
- Common::EventManager *eventMan = _system->getEventManager();
- while (eventMan->pollEvent(event)) {
+ while (_eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_QUIT:
_gfx->deinitVideo();