diff options
Diffstat (limited to 'engines/wage/dialog.cpp')
-rw-r--r-- | engines/wage/dialog.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/wage/dialog.cpp b/engines/wage/dialog.cpp index eb29f80cff..abd4d1b1c4 100644 --- a/engines/wage/dialog.cpp +++ b/engines/wage/dialog.cpp @@ -46,6 +46,7 @@ */ #include "common/system.h" +#include "common/events.h" #include "wage/wage.h" #include "wage/design.h" @@ -132,4 +133,27 @@ void Dialog::drawOutline(Common::Rect &bounds, int *spec, int speclen) { 1, kColorBlack, _gui->_patterns, kPatternSolid); } +void Dialog::run() { + bool shouldQuit = false; + + paint(); + + while (!shouldQuit) { + Common::Event event; + + while (_gui->_engine->_eventMan->pollEvent(event)) { + switch (event.type) { + case Common::EVENT_QUIT: + shouldQuit = true; + break; + default: + break; + } + } + + g_system->updateScreen(); + g_system->delayMillis(50); + } +} + } // End of namespace Wage |