diff options
-rw-r--r-- | engines/sci/graphics/view.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 402a69dc04..b5ab6182ad 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -476,6 +476,12 @@ void unpackCelData(byte *inBuffer, byte *celBitmap, byte clearColor, int pixelCo break; case kViewVga: case kViewVga11: + // If we have no RLE data, the image is just uncompressed + if (rlePos == 0) { + memcpy(outPtr, literalPtr, pixelCount); + break; + } + while (pixelNr < pixelCount) { curByte = *rlePtr++; runLength = curByte & 0x3F; |