aboutsummaryrefslogtreecommitdiff
path: root/image/png.h
diff options
context:
space:
mode:
authorBastien Bouclet2019-01-31 18:47:29 +0100
committerBastien Bouclet2019-04-28 07:59:14 +0200
commit9f98cddf8dc015e0cdc6b57e303b693bba3cc1fc (patch)
treedf6f5359fd5f793ec38a5d2a10a0148c08895a9f /image/png.h
parent0d5d04ca3a5473f24f45112bb40a009679024acc (diff)
downloadscummvm-rg350-9f98cddf8dc015e0cdc6b57e303b693bba3cc1fc.tar.gz
scummvm-rg350-9f98cddf8dc015e0cdc6b57e303b693bba3cc1fc.tar.bz2
scummvm-rg350-9f98cddf8dc015e0cdc6b57e303b693bba3cc1fc.zip
IMAGE: Don't perform color conversion when decoding PNGs
Diffstat (limited to 'image/png.h')
-rw-r--r--image/png.h4
1 files changed, 4 insertions, 0 deletions
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;