From 700953cff7b1615b5cc1b36d9db4bdf8b14d2d2d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 15 Jul 2006 22:22:39 +0000 Subject: Oops. I just noticed I was using _black to track the white colour, and _white to track the black colour. svn-id: r23522 --- engines/sword2/animation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sword2') diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp index b677ccec5a..f13ce959c0 100644 --- a/engines/sword2/animation.cpp +++ b/engines/sword2/animation.cpp @@ -116,12 +116,12 @@ void MoviePlayer::updatePalette(byte *pal, bool packed) { uint32 weight = 3 * r * r + 6 * g * g + 2 * b * b; if (weight >= maxWeight) { - _black = i; + _white = i; maxWeight = weight; } if (weight <= minWeight) { - _white = i; + _black = i; minWeight = i; } @@ -232,9 +232,9 @@ void MoviePlayer::drawTextObject(MovieTextObject *t) { for (int y = 0; y < t->textSprite->h; y++) { for (int x = 0; x < t->textSprite->w; x++) { if (src[x] == 1) - dst[x] = _white; - else if (src[x] == 255) dst[x] = _black; + else if (src[x] == 255) + dst[x] = _white; } src += t->textSprite->w; dst += screenWidth; -- cgit v1.2.3