aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-17 23:54:52 +0100
committerEugene Sandulenko2019-12-17 23:57:59 +0100
commitd17464e86bf0b6780945036fd828b02caa16e04a (patch)
treee4a48a00dfa432917788f77d9f2793e65b6add53 /engines
parent7c919f70d441961d8335cdadb10fc4f0e14ee915 (diff)
downloadscummvm-rg350-d17464e86bf0b6780945036fd828b02caa16e04a.tar.gz
scummvm-rg350-d17464e86bf0b6780945036fd828b02caa16e04a.tar.bz2
scummvm-rg350-d17464e86bf0b6780945036fd828b02caa16e04a.zip
ENGINES: We must poll events in order to show the window on some platforms.
This is a regression from b86840087. The side effect of it that on Mac the splash screen in not visible at all. I hope that this does not trigger same crash, as it happens now only once.
Diffstat (limited to 'engines')
-rw-r--r--engines/engine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index c16c1f909d..cde528e1cd 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -261,6 +261,8 @@ void splashScreen() {
// Delay 0.6 secs
uint time0 = g_system->getMillis();
Common::Event event;
+ g_system->getEventManager()->pollEvent(event);
+
while (time0 + 600 > g_system->getMillis()) {
g_system->delayMillis(10);
}