diff options
Diffstat (limited to 'engines/kyra/screen_v2.cpp')
-rw-r--r-- | engines/kyra/screen_v2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/screen_v2.cpp b/engines/kyra/screen_v2.cpp index c6ea6a93e8..b2952ee113 100644 --- a/engines/kyra/screen_v2.cpp +++ b/engines/kyra/screen_v2.cpp @@ -57,7 +57,7 @@ uint8 *Screen_v2::generateOverlay(const uint8 *palette, uint8 *buffer, int start uint8 processedPalette[3]; const uint8 *src = palette + i*3; byte col; - + col = *src++; col -= ((((col - col1) * factor) << 1) >> 8) & 0xFF; processedPalette[0] = col; @@ -487,13 +487,13 @@ bool Screen_v2::calcBounds(int w0, int h0, int &x1, int &y1, int &w1, int &h1, i void Screen_v2::checkedPageUpdate(int srcPage, int dstPage) { debugC(9, kDebugLevelScreen, "Screen_v2::checkedPageUpdate(%d, %d)", srcPage, dstPage); - + const uint32 *src = (const uint32 *)getPagePtr(srcPage); uint32 *dst = (uint32 *)getPagePtr(dstPage); uint32 *page0 = (uint32 *)getPagePtr(0); - + bool updated = false; - + for (int y = 0; y < 200; ++y) { for (int x = 0; x < 80; ++x, ++src, ++dst, ++page0) { if (*src != *dst) { |