aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-20 21:43:24 +0100
committerJohannes Schickel2011-02-20 21:43:24 +0100
commit9afc89e67c287c3253e20a0a724774e84fa244f3 (patch)
treed2f922da88f6516fdab645f9b4326f5185dae8b7 /graphics
parent22489cbf8ec58e26fe1b3db41c4f6d398b34fd30 (diff)
downloadscummvm-rg350-9afc89e67c287c3253e20a0a724774e84fa244f3.tar.gz
scummvm-rg350-9afc89e67c287c3253e20a0a724774e84fa244f3.tar.bz2
scummvm-rg350-9afc89e67c287c3253e20a0a724774e84fa244f3.zip
GRAPHICS: Let PNG::getPalette take an uint16 for the palette entry count.
This is in analogy to r55742 / 2f08dcb. I also took the freedom to clarify that the PNG loader uses a RGBA palette format.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/png.h b/graphics/png.h
index b2ba7ac0f2..70f2e4ba27 100644
--- a/graphics/png.h
+++ b/graphics/png.h
@@ -117,9 +117,11 @@ public:
}
/**
- * Returns the palette of the specified PNG8 image
+ * Returns the palette of the specified PNG8 image.
+ *
+ * Note that the palette's format is RGBA.
*/
- void getPalette(byte *palette, byte &entries) {
+ void getPalette(byte *palette, uint16 &entries) {
if (_header.colorType != kIndexed)
error("Palette requested for a non-indexed PNG");
palette = _palette;