aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-14 13:49:28 +0000
committerEugene Sandulenko2009-06-14 13:49:28 +0000
commit682c272e53196bbb4c59bcdc3fe8aa1380bfdea1 (patch)
treef75a64beb2d2ae5f38f44a1c5de9b35a97419a9c /engines
parent34d41f61aad64a67807846d832a6533efeef1d80 (diff)
downloadscummvm-rg350-682c272e53196bbb4c59bcdc3fe8aa1380bfdea1.tar.gz
scummvm-rg350-682c272e53196bbb4c59bcdc3fe8aa1380bfdea1.tar.bz2
scummvm-rg350-682c272e53196bbb4c59bcdc3fe8aa1380bfdea1.zip
Replace hackish getch() with proper event loop at end of the demo.
svn-id: r41513
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/draci.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp
index 6f4268632a..7095ce2e82 100644
--- a/engines/draci/draci.cpp
+++ b/engines/draci/draci.cpp
@@ -170,7 +170,20 @@ int DraciEngine::go() {
debugC(5, kDraciGeneralDebugLevel, "Finished frame %d", t);
}
- getchar();
+ Common::Event event;
+ bool quit = false;
+ while (!quit) {
+ while (_eventMan->pollEvent(event)) {
+ switch (event.type) {
+ case Common::EVENT_QUIT:
+ quit = true;
+ default:
+ break;
+ }
+ }
+ _system->updateScreen();
+ _system->delayMillis(20);
+ }
return 0;
}