From 205df5dbdfc75d051d1d74e997dbd88208cbbdf1 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 1 Mar 2019 18:43:17 +0000 Subject: IMAGE: Fix taking screenshots on big endian systems --- image/bmp.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'image/bmp.cpp') diff --git a/image/bmp.cpp b/image/bmp.cpp index ce2b099797..bd3381d26c 100644 --- a/image/bmp.cpp +++ b/image/bmp.cpp @@ -133,7 +133,11 @@ bool BitmapDecoder::loadStream(Common::SeekableReadStream &stream) { } bool writeBMP(Common::WriteStream &out, const Graphics::Surface &input, const bool bottomUp) { +#ifdef SCUMM_LITTLE_ENDIAN + const Graphics::PixelFormat requiredFormat_3byte(3, 8, 8, 8, 0, 16, 8, 0, 0); +#else const Graphics::PixelFormat requiredFormat_3byte(3, 8, 8, 8, 0, 0, 8, 16, 0); +#endif Graphics::Surface *tmp = NULL; const Graphics::Surface *surface; -- cgit v1.2.3