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 --- sound/softsynth/mt32.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sound') diff --git a/sound/softsynth/mt32.cpp b/sound/softsynth/mt32.cpp index 422231828d..d332e12daf 100644 --- a/sound/softsynth/mt32.cpp +++ b/sound/softsynth/mt32.cpp @@ -29,10 +29,11 @@ #include "sound/softsynth/emumidi.h" #include "sound/mpu401.h" -#include "common/util.h" -#include "common/file.h" #include "common/config-manager.h" +#include "common/events.h" +#include "common/file.h" #include "common/system.h" +#include "common/util.h" #include "graphics/fontman.h" #include "graphics/surface.h" @@ -112,7 +113,8 @@ public: static int eatSystemEvents() { OSystem::Event event; - while (g_system->pollEvent(event)) { + Common::EventManager *eventMan = g_system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_QUIT: return 1; -- cgit v1.2.3