mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
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:
parent
44f041cf8e
commit
8a491fc036
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user