[Scummvm-git-logs] scummvm-tools master -> f1897ae2ee36a2fc740930857cb8f0463d3d9bb0

ccawley2011 noreply at scummvm.org
Tue Nov 16 21:37:32 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .

Summary:
f1897ae2ee GRIM: Fix compilation on big-endian systems


Commit: f1897ae2ee36a2fc740930857cb8f0463d3d9bb0
    https://github.com/scummvm/scummvm-tools/commit/f1897ae2ee36a2fc740930857cb8f0463d3d9bb0
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2021-11-16T21:37:04Z

Commit Message:
GRIM: Fix compilation on big-endian systems

Changed paths:
    engines/grim/bm2bmp.cpp


diff --git a/engines/grim/bm2bmp.cpp b/engines/grim/bm2bmp.cpp
index e033fed..1376a70 100644
--- a/engines/grim/bm2bmp.cpp
+++ b/engines/grim/bm2bmp.cpp
@@ -237,7 +237,7 @@ Bitmap *Bitmap::load(const char *data, int len) {
 
 #ifdef SCUMM_BIG_ENDIAN
 		for (int j = 0; j < b->_width * b->_height; ++j) {
-			((uint16 *)b->_data[i])[j] = SWAP_BYTES_16(((uint16 *)b->_data[i])[j]);
+			((uint16 *)b->_data[i])[j] = SWAP_16(((uint16 *)b->_data[i])[j]);
 		}
 #endif
 	}




More information about the Scummvm-git-logs mailing list