aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}