diff options
author | Eugene Sandulenko | 2016-06-15 07:33:52 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-15 07:33:52 +0200 |
commit | 0211c0b27cff86506ae8e1125693abf204305d5f (patch) | |
tree | 1e9b7412dbbe6efc61c5bbd3e6142537232c2257 | |
parent | 2b8140136836a9620714a25bce597909849fe2a6 (diff) | |
download | scummvm-rg350-0211c0b27cff86506ae8e1125693abf204305d5f.tar.gz scummvm-rg350-0211c0b27cff86506ae8e1125693abf204305d5f.tar.bz2 scummvm-rg350-0211c0b27cff86506ae8e1125693abf204305d5f.zip |
SCUMM HE: Plugged Moonbase distortion in
-rw-r--r-- | engines/scumm/he/moonbase/distortion.cpp | 1 | ||||
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/scumm/he/moonbase/distortion.cpp b/engines/scumm/he/moonbase/distortion.cpp index 8465771820..0bef2459b5 100644 --- a/engines/scumm/he/moonbase/distortion.cpp +++ b/engines/scumm/he/moonbase/distortion.cpp @@ -190,6 +190,7 @@ void Moonbase::blitDistortion(byte *bufferData, const int bufferWidth, const int int src_x = (x + xOffset); int src_y = (y + yOffset); + warning("x1: %d y1: %d x2: %d y2: %d", (src_x - l_reach), (src_y - t_reach), (src_x + r_reach), (src_y + b_reach)); Common::Rect srcReach((src_x - l_reach), (src_y - t_reach), (src_x + r_reach), (src_y + b_reach)); Common::Rect srcLimits(srcBitmap.w, srcBitmap.h); diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index e55c3cbb72..b152b40103 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -1817,6 +1817,7 @@ void Wiz::copy555WizImage(uint8 *dst, uint8 *wizd, int dstPitch, int dstType, ((ScummEngine_v100he *)_vm)->_moonbase->blitT14WizImage(dst, dstw, dsth, dstPitch, clipBox, wizd, srcx, srcy, rawROP, paramROP); } else if (compID == 0x12340802) { warning("Distortion codec"); + ((ScummEngine_v100he *)_vm)->_moonbase->blitDistortion(dst, dstw, dsth, dstPitch, clipBox, wizd, srcx, srcy, 0); } else if (compID == 0x12340902) { error("Unsupported Distortion"); } |