aboutsummaryrefslogtreecommitdiff
path: root/graphics/decoders/image_decoder.h
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/image_decoder.h
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/image_decoder.h')
-rw-r--r--graphics/decoders/image_decoder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/decoders/image_decoder.h b/graphics/decoders/image_decoder.h
index e768f7f9a2..7fa00749ff 100644
--- a/graphics/decoders/image_decoder.h
+++ b/graphics/decoders/image_decoder.h
@@ -78,6 +78,11 @@ public:
* @return the decoded palette, or 0 if no palette is present
*/
virtual const byte *getPalette() const { return 0; }
+
+ /** Return the starting index of the palette. */
+ virtual byte getPaletteStartIndex() const { return 0; }
+ /** Return the number of colors in the palette. */
+ virtual uint16 getPaletteColorCount() const { return 0; }
};
} // End of namespace Graphics