From 793553c1b443921e7a5272fff60971d017024b60 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Thu, 1 Nov 2007 21:23:48 +0000 Subject: Made debug console available when displaying slides (like intermissions and menu). svn-id: r29370 --- engines/parallaction/parallaction.cpp | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'engines/parallaction') diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 126e16c77b..1af7f5c736 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -263,27 +263,11 @@ uint16 Parallaction::updateInput() { // FIXME: see comment for updateInput() void waitUntilLeftClick() { - Common::Event e; - - Common::EventManager *eventMan = g_system->getEventManager(); - for (;;) { - eventMan->pollEvent(e); - - if (e.type == Common::EVENT_LBUTTONUP) - break; - - if (e.type == Common::EVENT_QUIT) { - // TODO: don't quit() here, just have caller routines to check - // on kEngineQuit and exit gracefully to allow the engine to shut down - _engineFlags |= kEngineQuit; - g_system->quit(); - break; - } - + do { + _vm->updateInput(); _vm->_gfx->updateScreen(); g_system->delayMillis(30); - } - + } while (_mouseButtons != kMouseLeftUp); return; } -- cgit v1.2.3