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.
This commit is contained in:
AndywinXp 2024-06-11 21:56:24 +02:00
parent 44f041cf8e
commit 8a491fc036

View File

@ -1145,7 +1145,7 @@ static void distortionTransferOp(int transferOp, MoonbaseDistortionInfo *mdi, ui
switch (transferOp) { switch (transferOp) {
case kMDTEdgeReflectionClipped: case kMDTEdgeReflectionClipped:
// Get the 'coordinates' from the color channels... // 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 // Find the read X location
sx = mdi->baseX + dx + xx; sx = mdi->baseX + dx + xx;