aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-10 15:42:53 +0000
committerMax Horn2002-11-10 15:42:53 +0000
commite901190863d397cb72fbd6e7a46b095b3416022a (patch)
tree6b1bcd444e06a13d01197276657feefb17d6358a /scumm/gfx.cpp
parent0b3e4323f004976159ffd569caf12c71966cba58 (diff)
downloadscummvm-rg350-e901190863d397cb72fbd6e7a46b095b3416022a.tar.gz
scummvm-rg350-e901190863d397cb72fbd6e7a46b095b3416022a.tar.bz2
scummvm-rg350-e901190863d397cb72fbd6e7a46b095b3416022a.zip
fix for the flashlight crash in Indy3; I am not 100% sure that this is the right way t do it, though, need to do some more reseach
svn-id: r5496
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index f8cce30c76..36cb8b092b 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -616,7 +616,6 @@ void Scumm::drawFlashlight()
static int flashX, flashY, flashW, flashH;
int i, j, offset;
- int topline = virtscr[0].topline;
// Remove the flash light first if it was previously drawn
if (_flashlightIsDrawn) {
@@ -667,7 +666,7 @@ void Scumm::drawFlashlight()
}
byte *bgbak;
- offset = (flashY - topline) * _realWidth + virtscr[0].xstart + flashX * 8;
+ offset = flashY * _realWidth + virtscr[0].xstart + flashX * 8;
flashBuffer = virtscr[0].screenPtr + offset;
bgbak = getResourceAddress(rtBuffer, 5) + offset;