From 1bb8f22567e71796bba4f98a6ff4353ec84df197 Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 11 Nov 2012 14:07:58 +0100 Subject: KYRA: finish implementation of new HOF sequence player code --- engines/kyra/screen_hof.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'engines/kyra/screen_hof.cpp') diff --git a/engines/kyra/screen_hof.cpp b/engines/kyra/screen_hof.cpp index 7fdbdeb4db..a8ec2cc4ca 100644 --- a/engines/kyra/screen_hof.cpp +++ b/engines/kyra/screen_hof.cpp @@ -93,40 +93,4 @@ void Screen_HoF::cmpFadeFrameStep(int srcPage, int srcW, int srcH, int srcX, int } } -void Screen_HoF::copyRegionEx(int srcPage, int srcW, int srcH, int dstPage, int dstX, int dstY, int dstW, int dstH, const ScreenDim *dim, bool flag) { - int x0 = dim->sx << 3; - int y0 = dim->sy; - int w0 = dim->w << 3; - int h0 = dim->h; - - int x1 = dstX; - int y1 = dstY; - int w1 = dstW; - int h1 = dstH; - - int x2, y2, w2; - - calcBounds(w0, h0, x1, y1, w1, h1, x2, y2, w2); - - const uint8 *src = getPagePtr(srcPage) + (320 * srcH) + srcW; - uint8 *dst = getPagePtr(dstPage) + 320 * (y0 + y1); - - for (int y = 0; y < h1; y++) { - const uint8 *s = src + x2; - uint8 *d = dst + x0 + x1; - - if (flag) - d += (h1 >> 1); - - for (int x = 0; x < w1; x++) { - if (*s) - *d = *s; - s++; - d++; - } - dst += 320; - src += 320; - } -} - } // End of namespace Kyra -- cgit v1.2.3