IMAGE: Fix taking screenshots on big endian systems

This commit is contained in:
Cameron Cawley 2019-03-01 18:43:17 +00:00 committed by Bastien Bouclet
parent 8ae17b481a
commit 205df5dbdf
4 changed files with 18 additions and 1 deletions

View file

@ -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;