From 5fecf5bcb53e253980cb82b4dac7d2c2e0d86eab Mon Sep 17 00:00:00 2001 From: D G Turner Date: Wed, 26 Dec 2012 02:09:33 +0000 Subject: GRAPHICS: Allow ILBM bitmap loading for images with 6 planes. Thanks to Tomaz^ for this. --- graphics/iff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics') 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) { -- cgit v1.2.3