diff options
author | Eugene Sandulenko | 2013-07-17 14:13:23 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:18 +0300 |
commit | a54a60f52e1548715361c98f779e531205b3c18a (patch) | |
tree | 70cd9d5f0b3c19f85506364d70caeb6e0bdfe529 | |
parent | 6518cb579c110cd19356cd7aa78a12cc342056bb (diff) | |
download | scummvm-rg350-a54a60f52e1548715361c98f779e531205b3c18a.tar.gz scummvm-rg350-a54a60f52e1548715361c98f779e531205b3c18a.tar.bz2 scummvm-rg350-a54a60f52e1548715361c98f779e531205b3c18a.zip |
FULLPIPE: Fix crash in bitmap drawing code.
-rw-r--r-- | engines/fullpipe/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 050a1b4c1d..bc8ed26561 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -464,7 +464,7 @@ void Bitmap::putDib(int x, int y, byte *palette) { if (pos <= end2 + 1 || (fillValue += end2 - pos + 1, fillValue > 0)) { if (endy1 <= endy) { curDestPtr = (int16 *)g_fullpipe->_backgroundSurface.getBasePtr(endy1, start1); - int bgcolor = *(int32 *)(palette + 4 * (pixel >> 8)); + int bgcolor = *(int32 *)(palette + 4 * ((pixel >> 8) & 0xff)); colorFill(curDestPtr, fillValue, bgcolor); } |