aboutsummaryrefslogtreecommitdiff
path: root/image/png.cpp
diff options
context:
space:
mode:
authorSimei Yin2017-08-03 08:07:00 +0200
committerSimei Yin2017-08-03 09:36:30 +0200
commita503af495988a0a65d770758d697475f5b1ac414 (patch)
treee2f588e6104c158120ade16c0fefbe027321aa18 /image/png.cpp
parent3a7e5f16479cb34509cf5c05b345a9f8154a3842 (diff)
downloadscummvm-rg350-a503af495988a0a65d770758d697475f5b1ac414.tar.gz
scummvm-rg350-a503af495988a0a65d770758d697475f5b1ac414.tar.bz2
scummvm-rg350-a503af495988a0a65d770758d697475f5b1ac414.zip
IMAGE: Correct 4-byte image writting pixel format
Diffstat (limited to 'image/png.cpp')
-rw-r--r--image/png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/png.cpp b/image/png.cpp
index fc0daf99b5..cfbcba5206 100644
--- a/image/png.cpp
+++ b/image/png.cpp
@@ -250,7 +250,7 @@ bool PNGDecoder::loadStream(Common::SeekableReadStream &stream) {
bool writePNG(Common::WriteStream &out, const Graphics::Surface &input, const bool bottomUp) {
#ifdef USE_PNG
const Graphics::PixelFormat requiredFormat_3byte(3, 8, 8, 8, 0, 16, 8, 0, 0);
- const Graphics::PixelFormat requiredFormat_4byte(4, 8, 8, 8, 8, 16, 8, 0, 24);
+ const Graphics::PixelFormat requiredFormat_4byte(4, 8, 8, 8, 8, 0, 8, 16, 24);
if (input.format.bytesPerPixel == 3) {
if (input.format != requiredFormat_3byte) {