diff options
author | Paul Gilbert | 2019-09-07 22:14:21 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-09-07 22:14:21 -0700 |
commit | 106e366424f9e165af9dcd4c151194cb0e12986c (patch) | |
tree | 2d60b6c4f6e26b427f08f6f06f08d48fa2cdaf02 /engines/glk | |
parent | f27329e799fcd26b1ef0d68842c45dcce3a10e4e (diff) | |
download | scummvm-rg350-106e366424f9e165af9dcd4c151194cb0e12986c.tar.gz scummvm-rg350-106e366424f9e165af9dcd4c151194cb0e12986c.tar.bz2 scummvm-rg350-106e366424f9e165af9dcd4c151194cb0e12986c.zip |
GLK: Fix stalling of event processing loop
Diffstat (limited to 'engines/glk')
-rw-r--r-- | engines/glk/events.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/glk/events.cpp b/engines/glk/events.cpp index bb8dc963e3..a1a71fcbe9 100644 --- a/engines/glk/events.cpp +++ b/engines/glk/events.cpp @@ -181,7 +181,8 @@ void Events::pollEvents() { do { checkForNextFrameCounter(); - g_system->getEventManager()->pollEvent(event); + if (!g_system->getEventManager()->pollEvent(event)) + return; switch (event.type) { case Common::EVENT_KEYDOWN: { |