From 362b0cd5e4a71a0b2610ff8abb6aeecddc842cf0 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 13 Feb 2011 20:43:17 +0100 Subject: TUCKER: Adapt to setPalette RGBA->RGB change. This change has not been tested, since I do not own copy of Tucker. --- engines/tucker/locations.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/tucker/locations.cpp') diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index 009695e8aa..c1a8eee31b 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -1792,11 +1792,11 @@ void TuckerEngine::execData3PreUpdate_locationNum29() { _updateLocationFadePaletteCounter = 0; } const int d = _updateLocationFadePaletteCounter / 2; - uint8 scrollPal[5 * 4]; + uint8 scrollPal[5 * 3]; for (int i = 0; i < 5; ++i) { - scrollPal[i * 4] = r[i + d]; - scrollPal[i * 4 + 1] = g[i + d]; - scrollPal[i * 4 + 2] = b[i + d]; + scrollPal[i * 3] = r[i + d]; + scrollPal[i * 3 + 1] = g[i + d]; + scrollPal[i * 3 + 2] = b[i + d]; } _system->getPaletteManager()->setPalette(scrollPal, 118, 5); if (_flagsTable[143] == 1) { -- cgit v1.2.3