aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-09-26 19:52:17 +0300
committerFilippos Karapetis2011-09-26 20:02:32 +0300
commit43fb9d32b52d3db7530ba5afac1bfe8e11decde3 (patch)
treed324a8744d86c67ff4d576b5ffdac3c8de3dfcd9
parent8fef99fab1515c57a4a24149d30389b0cb18c332 (diff)
downloadscummvm-rg350-43fb9d32b52d3db7530ba5afac1bfe8e11decde3.tar.gz
scummvm-rg350-43fb9d32b52d3db7530ba5afac1bfe8e11decde3.tar.bz2
scummvm-rg350-43fb9d32b52d3db7530ba5afac1bfe8e11decde3.zip
SCI: Code formatting
-rw-r--r--engines/sci/graphics/view.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp
index 6ca4903e17..a0d5b51a2b 100644
--- a/engines/sci/graphics/view.cpp
+++ b/engines/sci/graphics/view.cpp
@@ -471,7 +471,8 @@ void unpackCelData(byte *inBuffer, byte *celBitmap, byte clearColor, int pixelCo
curByte = *rlePtr++;
if (curByte & 0xC0) { // fill with color
runLength = curByte >> 6;
- memset(outPtr + pixelNr, curByte & 0x3F, MIN<uint16>(runLength, pixelCount - pixelNr));
+ curByte = curByte & 0x3F;
+ memset(outPtr + pixelNr, curByte, MIN<uint16>(runLength, pixelCount - pixelNr));
} else { // skip the next pixels (transparency)
runLength = curByte & 0x3F;
}