diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/testbed/events.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/testbed/events.cpp b/engines/testbed/events.cpp index 78de87e133..4b9ced2a53 100644 --- a/engines/testbed/events.cpp +++ b/engines/testbed/events.cpp @@ -83,11 +83,10 @@ struct keycodeToChar { char EventTests::keystrokeToChar() { Common::EventManager *eventMan = g_system->getEventManager(); - bool quitLoop = false; Common::Event event; // handle all keybd events - while (!quitLoop) { + while (true) { while (eventMan->pollEvent(event)) { // Quit if explicitly requested! if (Engine::shouldQuit()) { @@ -110,8 +109,6 @@ char EventTests::keystrokeToChar() { } } } - - return 0; } Common::Rect EventTests::drawFinishZone() { |