diff options
author | Matthew Hoops | 2011-03-10 18:45:51 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-03-10 18:45:51 -0500 |
commit | 2cbcc76789f72f693763661422e4bf30b2f3441d (patch) | |
tree | 45abaa1bcec3c7c7df1d9dcc2458de00ac3d662e /engines/sci | |
parent | bca82642a79c250a958111b437a2fe18c1a1101c (diff) | |
download | scummvm-rg350-2cbcc76789f72f693763661422e4bf30b2f3441d.tar.gz scummvm-rg350-2cbcc76789f72f693763661422e4bf30b2f3441d.tar.bz2 scummvm-rg350-2cbcc76789f72f693763661422e4bf30b2f3441d.zip |
SCI: Fix uncompressed SCI1.1 views
A regression from d2ad7898d93
Diffstat (limited to 'engines/sci')
-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; |