IMAGE: Fix taking screenshots on big endian systems
This commit is contained in:
parent
8ae17b481a
commit
205df5dbdf
4 changed files with 18 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue