aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-06-19 12:08:10 +0000
committerPaweł Kołodziejski2003-06-19 12:08:10 +0000
commit773ee445d0bc27e820ebbf7e0f0baabfe1d04ce4 (patch)
tree4be2777c47ac81cca332611fad5cef4dedfafcb9 /scumm
parentab7b941999e3ddd99f6bc904e6badcb076807db6 (diff)
downloadscummvm-rg350-773ee445d0bc27e820ebbf7e0f0baabfe1d04ce4.tar.gz
scummvm-rg350-773ee445d0bc27e820ebbf7e0f0baabfe1d04ce4.tar.bz2
scummvm-rg350-773ee445d0bc27e820ebbf7e0f0baabfe1d04ce4.zip
fix for len variable in v1 costume codec
svn-id: r8554
Diffstat (limited to 'scumm')
-rw-r--r--scumm/costume.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index 46f571e705..86418be76d 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -273,7 +273,7 @@ void CostumeRenderer::procC64() {
const byte *src;
byte *dst;
byte color;
- byte len = 0; // FIXME - err, len is never set to anything...
+ byte len = 0;
int y = 0;
src = _srcptr;
@@ -282,7 +282,7 @@ void CostumeRenderer::procC64() {
for (int x = 0; x < (_width >> 3); x++) {
color = *src++;
if (color & 0x80) {
- len &= 0x7f;
+ len = color & 0x7f;
color = *src++;
for (int z = 0; z < len; z++) {
dst[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];