From 15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Mar 2007 00:53:21 +0000 Subject: Force all code to use EventManager::pollEvent instead of OSystem::pollEvent svn-id: r26156 --- engines/sword1/animation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/sword1/animation.cpp') diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index b27bc15d0d..f8ed59a7a6 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -30,6 +30,7 @@ #include "common/config-manager.h" #include "common/endian.h" #include "common/str.h" +#include "common/events.h" #include "common/system.h" namespace Sword1 { @@ -193,13 +194,14 @@ void MoviePlayer::play(void) { } _currentFrame = 0; bool terminated = false; + Common::EventManager *eventMan = _sys->getEventManager(); while (!terminated && decodeFrame()) { processFrame(); syncFrame(); updateScreen(); _currentFrame++; OSystem::Event event; - while (_sys->pollEvent(event)) { + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_SCREEN_CHANGED: handleScreenChanged(); -- cgit v1.2.3