From 9f98cddf8dc015e0cdc6b57e303b693bba3cc1fc Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Thu, 31 Jan 2019 18:47:29 +0100 Subject: IMAGE: Don't perform color conversion when decoding PNGs --- image/png.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'image/png.h') diff --git a/image/png.h b/image/png.h index cdc3e3faf1..adbc6d7a68 100644 --- a/image/png.h +++ b/image/png.h @@ -33,6 +33,7 @@ #include "common/scummsys.h" #include "common/textconsole.h" +#include "graphics/pixelformat.h" #include "image/image_decoder.h" namespace Common { @@ -57,7 +58,10 @@ public: const byte *getPalette() const { return _palette; } uint16 getPaletteColorCount() const { return _paletteColorCount; } void setSkipSignature(bool skip) { _skipSignature = skip; } + private: + Graphics::PixelFormat getByteOrderRgbaPixelFormat() const; + byte *_palette; uint16 _paletteColorCount; -- cgit v1.2.3