aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-17 14:13:23 +0300
committerEugene Sandulenko2013-09-06 14:48:18 +0300
commita54a60f52e1548715361c98f779e531205b3c18a (patch)
tree70cd9d5f0b3c19f85506364d70caeb6e0bdfe529 /engines/fullpipe/gfx.cpp
parent6518cb579c110cd19356cd7aa78a12cc342056bb (diff)
downloadscummvm-rg350-a54a60f52e1548715361c98f779e531205b3c18a.tar.gz
scummvm-rg350-a54a60f52e1548715361c98f779e531205b3c18a.tar.bz2
scummvm-rg350-a54a60f52e1548715361c98f779e531205b3c18a.zip
FULLPIPE: Fix crash in bitmap drawing code.
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r--engines/fullpipe/gfx.cpp2
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);
}