aboutsummaryrefslogtreecommitdiff
path: root/graphics/decoders/png.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-05-14 00:49:10 -0400
committerMatthew Hoops2012-05-14 09:56:56 -0400
commitd789df894552bf73709628f09a0282b462df797e (patch)
tree221de03284a568a9db5f54a88754bdb0aa3b8241 /graphics/decoders/png.cpp
parentc3f0a426fcbe2c8991b29c0e4bda1e7f0c9263b9 (diff)
downloadscummvm-rg350-d789df894552bf73709628f09a0282b462df797e.tar.gz
scummvm-rg350-d789df894552bf73709628f09a0282b462df797e.tar.bz2
scummvm-rg350-d789df894552bf73709628f09a0282b462df797e.zip
GRAPHICS: Add palette start index and color count functions to ImageDecoder
Diffstat (limited to 'graphics/decoders/png.cpp')
-rw-r--r--graphics/decoders/png.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/decoders/png.cpp b/graphics/decoders/png.cpp
index b87b6fdc7a..492c69779f 100644
--- a/graphics/decoders/png.cpp
+++ b/graphics/decoders/png.cpp
@@ -99,7 +99,7 @@ enum PNGFilters {
};
PNGDecoder::PNGDecoder() : _compressedBuffer(0), _compressedBufferSize(0),
- _transparentColorSpecified(false), _outputSurface(0) {
+ _transparentColorSpecified(false), _outputSurface(0), _paletteEntries(0) {
}
PNGDecoder::~PNGDecoder() {
@@ -112,6 +112,8 @@ void PNGDecoder::destroy() {
delete _outputSurface;
_outputSurface = 0;
}
+
+ _paletteEntries = 0;
}
bool PNGDecoder::loadStream(Common::SeekableReadStream &stream) {