diff options
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; |