DIRECTOR: Use the remapPalettesWhenNeeded flag

This commit is contained in:
Scott Percival 2023-03-06 11:01:57 +08:00 committed by Eugene Sandulenko
parent 8eb6cd2ac0
commit 04d5d0f59f

View File

@ -320,8 +320,8 @@ Graphics::MacWidget *BitmapCastMember::createWidget(Common::Rect &bbox, Channel
break;
// 8bpp - if using a different palette, and we're not doing a color cycling operation, convert using nearest colour matching
case 8:
// Only redither images in Director 4 and up.
if (g_director->getVersion() < 400)
// Only redither 8-bit images if we have the flag set
if (!movie->_remapPalettesWhenNeeded)
break;
if (castPaletteId != currentPaletteId && !isColorCycling) {
const auto pals = g_director->getLoadedPalettes();