aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth
diff options
context:
space:
mode:
authorMax Horn2007-03-17 00:53:21 +0000
committerMax Horn2007-03-17 00:53:21 +0000
commit15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3 (patch)
tree1658efcaefcad7d9c8301317ea1acd3707048e76 /sound/softsynth
parenta6f3ed8173a0490855df84e955229c9f77ecf9c2 (diff)
downloadscummvm-rg350-15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3.tar.gz
scummvm-rg350-15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3.tar.bz2
scummvm-rg350-15d9bc42ea14d1c1fd5d1f8787664bbf0944d0a3.zip
Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
svn-id: r26156
Diffstat (limited to 'sound/softsynth')
-rw-r--r--sound/softsynth/mt32.cpp8
1 files changed, 5 insertions, 3 deletions
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;