From f4ff7fabad90c27d52582d08b891b72abc4c5a71 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 19 Jun 2006 07:45:40 +0000 Subject: Add patch for bug #1507856 - INDY3 VGA: Crashes in Sewer svn-id: r23177 --- engines/scumm/gfx.cpp | 8 ++++++++ engines/scumm/intern.h | 1 + 2 files changed, 9 insertions(+) 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]; diff --git a/engines/scumm/intern.h b/engines/scumm/intern.h index d44fb63341..d14c31acd6 100644 --- a/engines/scumm/intern.h +++ b/engines/scumm/intern.h @@ -59,6 +59,7 @@ protected: public: ScummEngine_v5(OSystem *syst, const DetectorResult &dr); + void clearFlashlight(); protected: virtual void setupOpcodes(); virtual void executeOpcode(byte i); -- cgit v1.2.3