From bc34d0d5624d79e84e3d797724ece85b80102e40 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 23 Nov 2004 03:08:40 +0000 Subject: Revert small part of recent WizImage changes, caused regressions. svn-id: r15867 --- scumm/gfx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 051d52823b..a98f4cf13e 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1478,6 +1478,7 @@ void Gdi::copyWizImage(uint8 *dst, const uint8 *src, int dstw, int dsth, int src if (calcClipRects(dstw, dsth, srcx, srcy, srcw, srch, rect, r1, r2)) { for (int i = 0; i < 256; i++) _wizImagePalette[i] = i; + dst += r2.left + r2.top * dstw; decompressWizImage(dst, dstw, r2, src, r1); } } @@ -1527,7 +1528,7 @@ void Gdi::decompressWizImage(uint8 *dst, int dstPitch, const Common::Rect &dstRe uint16 off; int color; - dstPtr = dst + dstRect.left + dstRect.top * dstPitch; + dstPtr = dst; dataPtr = src; // Skip over the first 'srcRect->top' lines in the data -- cgit v1.2.3