aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r--engines/scumm/gfx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index a66f39700c..6dff3ac265 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -789,6 +789,9 @@ void ScummEngine::redrawBGAreas() {
val = +1;
redrawBGStrip(0, 1);
} else if (_fullRedraw || diff != 0) {
+ if (_game.version <= 5) {
+ ((ScummEngine_v5 *)this)->clearFlashlight();
+ }
_bgNeedsRedraw = false;
redrawBGStrip(0, gdi._numStrips);
}
@@ -1089,6 +1092,11 @@ void ScummEngine::drawBox(int x, int y, int x2, int y2, int color) {
}
}
+void ScummEngine_v5::clearFlashlight() {
+ _flashlight.isDrawn = false;
+ _flashlight.buffer = NULL;
+}
+
void ScummEngine_v5::drawFlashlight() {
int i, j, x, y;
VirtScreen *vs = &virtscr[kMainVirtScreen];