aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-23 14:28:07 -0400
committerPaul Gilbert2014-08-23 14:28:07 -0400
commit148eb972abad3d1ac8b8685a25b88f74fb5dae5e (patch)
treefeccaab1306c533bccb13bf55d842f1f79fda137 /engines/access
parent1e2d79eb598a0ed73a59cc540cddbaddf0bc90dd (diff)
downloadscummvm-rg350-148eb972abad3d1ac8b8685a25b88f74fb5dae5e.tar.gz
scummvm-rg350-148eb972abad3d1ac8b8685a25b88f74fb5dae5e.tar.bz2
scummvm-rg350-148eb972abad3d1ac8b8685a25b88f74fb5dae5e.zip
ACCESS: Fix fade outs
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/access/screen.cpp b/engines/access/screen.cpp
index af97e2e236..f62c2f5baf 100644
--- a/engines/access/screen.cpp
+++ b/engines/access/screen.cpp
@@ -139,7 +139,7 @@ void Screen::forceFadeOut() {
do {
repeatFlag = false;
- for (srcP = &_tempPalette[0], count = 0; count < PALETTE_COUNT; ++count, ++srcP) {
+ for (srcP = &_tempPalette[0], count = 0; count < PALETTE_SIZE; ++count, ++srcP) {
int v = *srcP;
if (v) {
repeatFlag = true;
@@ -149,7 +149,7 @@ void Screen::forceFadeOut() {
updatePalette();
g_system->delayMillis(10);
- } while (repeatFlag);
+ } while (repeatFlag && !_vm->shouldQuit());
}
void Screen::forceFadeIn() {