diff options
author | yinsimei | 2017-07-01 13:41:42 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 1a27d671233cea7cb5cc25a1ff2a905260116398 (patch) | |
tree | 24689f2c6733d033e938deb5f296a3c3620ea5e5 /image/png.h | |
parent | 5469aaf8ec48050b517933f69c6b2bcbbc288c0f (diff) | |
download | scummvm-rg350-1a27d671233cea7cb5cc25a1ff2a905260116398.tar.gz scummvm-rg350-1a27d671233cea7cb5cc25a1ff2a905260116398.tar.bz2 scummvm-rg350-1a27d671233cea7cb5cc25a1ff2a905260116398.zip |
IMAGE: add flag to skip signature check in png decoder
Diffstat (limited to 'image/png.h')
-rw-r--r-- | image/png.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/image/png.h b/image/png.h index 7ecf68e76d..cdc3e3faf1 100644 --- a/image/png.h +++ b/image/png.h @@ -56,10 +56,14 @@ public: const Graphics::Surface *getSurface() const { return _outputSurface; } const byte *getPalette() const { return _palette; } uint16 getPaletteColorCount() const { return _paletteColorCount; } + void setSkipSignature(bool skip) { _skipSignature = skip; } private: byte *_palette; uint16 _paletteColorCount; + // flag to skip the png signature check for headless png files + bool _skipSignature; + Graphics::Surface *_outputSurface; }; |