[Scummvm-git-logs] scummvm master -> 7ec33b76a39e4ba53fd5e4ddc228f26cfe298d8a

AndywinXp noreply at scummvm.org
Sun Aug 24 07:34:02 UTC 2025


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

Summary:
7ec33b76a3 SCUMM: SMUSH: Change alignment mode version of WRITE_2X1_LINE macro


Commit: 7ec33b76a39e4ba53fd5e4ddc228f26cfe298d8a
    https://github.com/scummvm/scummvm/commit/7ec33b76a39e4ba53fd5e4ddc228f26cfe298d8a
Author: AndywinXp (andywinxp at gmail.com)
Date: 2025-08-24T09:33:55+02:00

Commit Message:
SCUMM: SMUSH: Change alignment mode version of WRITE_2X1_LINE macro

Changed paths:
    engines/scumm/smush/codec37.cpp


diff --git a/engines/scumm/smush/codec37.cpp b/engines/scumm/smush/codec37.cpp
index 42fc85da970..3fdb5f0e28e 100644
--- a/engines/scumm/smush/codec37.cpp
+++ b/engines/scumm/smush/codec37.cpp
@@ -262,10 +262,11 @@ void SmushDeltaBlocksDecoder::makeTable(int pitch, int index) {
 			(dst)[j] = (src)[j]; \
 	} while (0)
 
-#define WRITE_2X1_LINE(dst, v)      \
-	do {                            \
-		(dst)[0] = v & 0xFF;        \
-		(dst)[1] = (v >> 8) & 0xFF; \
+#define WRITE_2X1_LINE(dst, v)  \
+	do {                        \
+		int j;                  \
+		for (j = 0; j < 2; j++) \
+			(dst)[j] = v;       \
 	} while (0)
 
 #else /* SCUMM_NEED_ALIGNMENT */




More information about the Scummvm-git-logs mailing list