mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
IMAGE: Correct 4-byte image writting pixel format
This commit is contained in:
parent
3a7e5f1647
commit
a503af4959
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user