aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-17 14:44:14 +0300
committerEugene Sandulenko2013-09-06 14:48:18 +0300
commitd0c9392862484a07b360c69af5aab078ad9d4036 (patch)
tree1b72669633d18b3ae00ad2a7551ffe54bfb5443f /engines/fullpipe/gfx.cpp
parenta54a60f52e1548715361c98f779e531205b3c18a (diff)
downloadscummvm-rg350-d0c9392862484a07b360c69af5aab078ad9d4036.tar.gz
scummvm-rg350-d0c9392862484a07b360c69af5aab078ad9d4036.tar.bz2
scummvm-rg350-d0c9392862484a07b360c69af5aab078ad9d4036.zip
FULLPIPE: Implemented quitting from picture browsing
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r--engines/fullpipe/gfx.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index bc8ed26561..1e5bb28121 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -346,6 +346,12 @@ void Picture::drawRotated(int x, int y, int angle) {
}
void Picture::displayPicture() {
+ if (g_fullpipe->_needQuit)
+ return;
+
+ if (0 && !Common::String(_memfilename).hasSuffix(".dib"))
+ return;
+
getData();
init();
@@ -354,7 +360,7 @@ void Picture::displayPicture() {
draw(0, 0, 0, 0);
- while (1) {
+ while (!g_fullpipe->_needQuit) {
g_fullpipe->updateEvents();
g_fullpipe->_system->delayMillis(10);
g_fullpipe->_system->updateScreen();