diff options
author | peres | 2013-10-26 23:20:22 +0900 |
---|---|---|
committer | peres | 2013-10-26 23:26:22 +0900 |
commit | 070558c4c46d6be8898d77d9b2167d44a33f5a0f (patch) | |
tree | 3fa2be362277f4eb965cfdaba88167186300301c /graphics/decoders/iff.h | |
parent | 69be9adf52b643188c2a2e37aa7e4d79ecf2eae1 (diff) | |
download | scummvm-rg350-070558c4c46d6be8898d77d9b2167d44a33f5a0f.tar.gz scummvm-rg350-070558c4c46d6be8898d77d9b2167d44a33f5a0f.tar.bz2 scummvm-rg350-070558c4c46d6be8898d77d9b2167d44a33f5a0f.zip |
GRAPHICS: do not reset the extra parameters of IFFDecoder on destroy().
The two properties that control pixel packing and the size of the
surface need to be preserved for loadStream() to work correctly.
They are now under complete responsibility of the client.
Diffstat (limited to 'graphics/decoders/iff.h')
-rw-r--r-- | graphics/decoders/iff.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/decoders/iff.h b/graphics/decoders/iff.h index beac62e519..37cb4b38c1 100644 --- a/graphics/decoders/iff.h +++ b/graphics/decoders/iff.h @@ -85,6 +85,8 @@ public: /** * The number of planes to decode, also determines the pixel packing if _packPixels is true. * 8 == decode all planes, map 1 pixel in 1 byte. (default, no packing even if _packPixels is true) + * + * NOTE: this property must be reset manually, and is not reset by a call to destroy(). */ void setNumRelevantPlanes(const uint8 numRelevantPlanes) { _numRelevantPlanes = numRelevantPlanes; } @@ -94,6 +96,8 @@ public: * 2 == decode first 2 planes, pack 4 pixels in 1 byte. This makes _surface->w 1/4th of _header.width * 4 == decode first 4 planes, pack 2 pixels in 1 byte. This makes _surface->w half of _header.width * Packed bitmaps won't have a proper surface format since there is no way to tell it to use 1, 2 or 4 bits per pixel + * + * NOTE: this property must be reset manually, and is not reset by a call to destroy(). */ void setPixelPacking(const bool pixelPacking) { _pixelPacking = pixelPacking; } private: |