diff options
author | Johannes Schickel | 2011-02-20 21:43:24 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-02-20 21:43:24 +0100 |
commit | 9afc89e67c287c3253e20a0a724774e84fa244f3 (patch) | |
tree | d2f922da88f6516fdab645f9b4326f5185dae8b7 /graphics | |
parent | 22489cbf8ec58e26fe1b3db41c4f6d398b34fd30 (diff) | |
download | scummvm-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.h | 6 |
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; |