aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-12-19 21:22:26 +0000
committerTorbjörn Andersson2008-12-19 21:22:26 +0000
commita4e08d94fce35313a1e71c0ab6d7a2687939aca2 (patch)
tree8ab9df3e8eb8204ad6b3167cb971d5d8a74b37fc
parent6baa803dff69896daf09f341a92d5a4db1340f56 (diff)
downloadscummvm-rg350-a4e08d94fce35313a1e71c0ab6d7a2687939aca2.tar.gz
scummvm-rg350-a4e08d94fce35313a1e71c0ab6d7a2687939aca2.tar.bz2
scummvm-rg350-a4e08d94fce35313a1e71c0ab6d7a2687939aca2.zip
Allow quitting / returning to launcher while showing "selection boxes", e.g. the
pause game dialog. svn-id: r35445
-rw-r--r--engines/agi/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 63cea67072..99031612f0 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -364,7 +364,7 @@ int AgiEngine::selectionBox(const char *m, const char **b) {
AllowSyntheticEvents on(this);
debugC(4, kDebugLevelText, "waiting...");
- for (;;) {
+ while (!shouldQuit()) {
for (i = 0; b[i]; i++)
_gfx->drawCurrentStyleButton(bx[i], by[i], b[i], i == active, false, i == 0);