diff options
author | Max Horn | 2002-11-10 15:42:53 +0000 |
---|---|---|
committer | Max Horn | 2002-11-10 15:42:53 +0000 |
commit | e901190863d397cb72fbd6e7a46b095b3416022a (patch) | |
tree | 6b1bcd444e06a13d01197276657feefb17d6358a | |
parent | 0b3e4323f004976159ffd569caf12c71966cba58 (diff) | |
download | scummvm-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
-rw-r--r-- | scumm/gfx.cpp | 3 |
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; |