diff options
author | D G Turner | 2012-12-26 02:09:33 +0000 |
---|---|---|
committer | D G Turner | 2012-12-26 02:09:33 +0000 |
commit | 5fecf5bcb53e253980cb82b4dac7d2c2e0d86eab (patch) | |
tree | 6d74b61018bc2f8938cf71714671a15c23cf1c80 /graphics | |
parent | 0eb68f6c97a7b0bba860bc7f6cbcfffeda9ef3ce (diff) | |
download | scummvm-rg350-5fecf5bcb53e253980cb82b4dac7d2c2e0d86eab.tar.gz scummvm-rg350-5fecf5bcb53e253980cb82b4dac7d2c2e0d86eab.tar.bz2 scummvm-rg350-5fecf5bcb53e253980cb82b4dac7d2c2e0d86eab.zip |
GRAPHICS: Allow ILBM bitmap loading for images with 6 planes.
Thanks to Tomaz^ for this.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/iff.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/iff.cpp b/graphics/iff.cpp index 4a74b63693..eea051fe1e 100644 --- a/graphics/iff.cpp +++ b/graphics/iff.cpp @@ -50,7 +50,7 @@ void ILBMDecoder::loadHeader(Common::ReadStream *stream) { void ILBMDecoder::loadBitmap(uint32 mode, byte *buffer, Common::ReadStream *stream) { assert(stream); uint32 numPlanes = MIN(mode & ILBM_UNPACK_PLANES, (uint32)_header.depth); - assert(numPlanes == 1 || numPlanes == 2 || numPlanes == 3 || numPlanes == 4 || numPlanes == 5 || numPlanes == 8); + assert(numPlanes >= 1 && numPlanes <= 8 && numPlanes != 7); bool packPixels = (mode & ILBM_PACK_PLANES) != 0; if (numPlanes != 1 && numPlanes != 2 && numPlanes != 4) { |