From ffbca0786d8c37b22e8822f7297c3e0ee6f65207 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 15 Oct 2010 22:19:27 +0000 Subject: SCI: fixing iceman undithering door close-up room 9 (go up right at the start) svn-id: r53522 --- engines/sci/graphics/view.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 773822854b..20ebb9b937 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -595,9 +595,10 @@ void GfxView::unditherBitmap(byte *bitmapPtr, int16 width, int16 height, byte cl if (unditherTable[color]) { // Some color with black? Turn colors around, otherwise it won't // be the right color at all. + byte unditheredColor = color; if ((color & 0xF0) == 0) - color = (color << 4) | (color >> 4); - curPtr[0] = color; curPtr[1] = color; + unditheredColor = (color << 4) | (color >> 4); + curPtr[0] = unditheredColor; curPtr[1] = unditheredColor; } curPtr++; } -- cgit v1.2.3