[Scummvm-git-logs] scummvm master -> 8a491fc036156841f3824a8a02dceca320118498

AndywinXp noreply at scummvm.org
Tue Jun 11 19:56:29 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:
8a491fc036 SCUMM: MOONBASE: Fix distortion effect


Commit: 8a491fc036156841f3824a8a02dceca320118498
    https://github.com/scummvm/scummvm/commit/8a491fc036156841f3824a8a02dceca320118498
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-06-11T21:56:24+02:00

Commit Message:
SCUMM: MOONBASE: Fix distortion effect

Yes, I really did spend the afternoon and the evening
looking out for any obvious error on the distortion algorithm,
only to find out I was decoding the source pixel with the
wrong endianness.

Changed paths:
    engines/scumm/he/moonbase/moonbase_gfx.cpp


diff --git a/engines/scumm/he/moonbase/moonbase_gfx.cpp b/engines/scumm/he/moonbase/moonbase_gfx.cpp
index e76ffb5f8d0..4c78f570723 100644
--- a/engines/scumm/he/moonbase/moonbase_gfx.cpp
+++ b/engines/scumm/he/moonbase/moonbase_gfx.cpp
@@ -1145,7 +1145,7 @@ static void distortionTransferOp(int transferOp, MoonbaseDistortionInfo *mdi, ui
 	switch (transferOp) {
 	case kMDTEdgeReflectionClipped:
 		// Get the 'coordinates' from the color channels...
-		distortionGetCoordinates(READ_BE_UINT16(s), xx, yy);
+		distortionGetCoordinates(READ_LE_UINT16(s), xx, yy);
 
 		// Find the read X location
 		sx = mdi->baseX + dx + xx;




More information about the Scummvm-git-logs mailing list