aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sky/screen.cpp')
-rw-r--r--engines/sky/screen.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sky/screen.cpp b/engines/sky/screen.cpp
index 3cf545b001..a4509250e9 100644
--- a/engines/sky/screen.cpp
+++ b/engines/sky/screen.cpp
@@ -22,6 +22,7 @@
#include "common/stdafx.h"
#include "common/endian.h"
+#include "common/events.h"
#include "common/system.h"
#include "sky/disk.h"
@@ -395,7 +396,8 @@ void Screen::waitForTimer(void) {
OSystem::Event event;
_system->delayMillis(10);
- while (_system->pollEvent(event));
+ Common::EventManager *eventMan = _system->getEventManager();
+ while (eventMan->pollEvent(event));
}
}
@@ -404,7 +406,8 @@ void Screen::waitForSequence(void) {
OSystem::Event event;
_system->delayMillis(20);
- while (_system->pollEvent(event));
+ Common::EventManager *eventMan = _system->getEventManager();
+ while (eventMan->pollEvent(event));
}
}