diff options
author | Travis Howell | 2005-04-02 14:24:43 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-02 14:24:43 +0000 |
commit | b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c (patch) | |
tree | 11b8365f76d0173232f63e5fb47c1e156b16fbfa /scumm/wiz_he.cpp | |
parent | eb4dce05ee864dbd2bacc3be85689532bf9c7761 (diff) | |
download | scummvm-rg350-b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c.tar.gz scummvm-rg350-b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c.tar.bz2 scummvm-rg350-b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c.zip |
Cleanup
svn-id: r17333
Diffstat (limited to 'scumm/wiz_he.cpp')
-rw-r--r-- | scumm/wiz_he.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index 019f30b083..bb9a803f0e 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -231,21 +231,21 @@ void Wiz::copyAuxImage(uint8 *dst1, uint8 *dst2, const uint8 *src, int dstw, int } static bool calcClipRects(int dst_w, int dst_h, int src_x, int src_y, int src_w, int src_h, const Common::Rect *rect, Common::Rect &srcRect, Common::Rect &dstRect) { - srcRect = Common::Rect(0, 0, src_w, src_h); + srcRect = Common::Rect(src_w, src_h); dstRect = Common::Rect(src_x, src_y, src_x + src_w, src_y + src_h); Common::Rect r3; int diff; if (rect) { r3 = *rect; - Common::Rect r4(0, 0, dst_w, dst_h); + Common::Rect r4(dst_w, dst_h); if (r3.intersects(r4)) { r3.clip(r4); } else { return false; } } else { - r3 = Common::Rect(0, 0, dst_w, dst_h); + r3 = Common::Rect(dst_w, dst_h); } diff = dstRect.left - r3.left; if (diff < 0) { @@ -782,7 +782,7 @@ void ScummEngine_v72he::captureWizImage(int resNum, const Common::Rect& r, bool } else { src = pvs->getBackPixels(0, 0); } - Common::Rect rCapt(0, 0, pvs->w, pvs->h); + Common::Rect rCapt(pvs->w, pvs->h); if (rCapt.intersects(r)) { rCapt.clip(r); const uint8 *palPtr = _currentPalette; |