[Scummvm-git-logs] scummvm master -> bdc364b238352b649f9c70c6ec28948fc1f11626
AndywinXp
noreply at scummvm.org
Sun Jun 30 13:55:12 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
bdc364b238 SCUMM: HE: Fix endianness issues in dwCreateRawWiz()
Commit: bdc364b238352b649f9c70c6ec28948fc1f11626
https://github.com/scummvm/scummvm/commit/bdc364b238352b649f9c70c6ec28948fc1f11626
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-06-30T15:55:08+02:00
Commit Message:
SCUMM: HE: Fix endianness issues in dwCreateRawWiz()
I really wonder how this managed to not crash up until now...
This fixes bug #15237:
"SCUMM: HE: System message box not
being centered in Backyard Football"
Changed paths:
engines/scumm/he/wiz_he.cpp
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index 397b167f5e6..c0a2a73fb32 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -1426,8 +1426,8 @@ void Wiz::dwCreateRawWiz(int imageNum, int w, int h, int flags, int bitsPerPixel
if (flags & kCWFSpot) {
WRITE_BE_UINT32(writePtr, MKTAG('S', 'P', 'O', 'T')); writePtr += 4;
WRITE_BE_UINT32(writePtr, WIZBLOCK_SPOT_SIZE); writePtr += 4;
- WRITE_BE_UINT32(writePtr + 0, optionalSpotX);
- WRITE_BE_UINT32(writePtr + 4, optionalSpotY);
+ WRITE_LE_UINT32(writePtr + 0, optionalSpotX);
+ WRITE_LE_UINT32(writePtr + 4, optionalSpotY);
writePtr += WIZBLOCK_SPOT_DATA_SIZE;
}
@@ -1435,7 +1435,7 @@ void Wiz::dwCreateRawWiz(int imageNum, int w, int h, int flags, int bitsPerPixel
if (flags & kCWFRemapTable) {
WRITE_BE_UINT32(writePtr, MKTAG('R', 'M', 'A', 'P')); writePtr += 4;
WRITE_BE_UINT32(writePtr, WIZBLOCK_RMAP_SIZE); writePtr += 4;
- WRITE_BE_UINT32(writePtr, 0); writePtr += 4;
+ WRITE_LE_UINT32(writePtr, 0); writePtr += 4;
for (int i = 0; i < 256; ++i) {
*writePtr++ = i;
More information about the Scummvm-git-logs
mailing list