From 8c4494578e8273841473934facb68e6476ee16ac Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 13 Aug 2005 19:41:11 +0000 Subject: Fix bug #1258537 "ITE: Introduction text is black" svn-id: r18677 --- saga/gfx.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'saga/gfx.cpp') diff --git a/saga/gfx.cpp b/saga/gfx.cpp index 8f3070fe50..ca8f566e76 100644 --- a/saga/gfx.cpp +++ b/saga/gfx.cpp @@ -26,6 +26,7 @@ #include "saga/saga.h" #include "saga/gfx.h" #include "saga/interface.h" +#include "saga/scene.h" #include "common/system.h" @@ -175,7 +176,7 @@ void Gfx::setPalette(PalEntry *pal) { } // Make 256th color black. See bug #1256368 - if (_vm->getFeatures() & GF_MAC_RESOURCES) + if (_vm->getFeatures() & GF_MAC_RESOURCES && !_vm->_scene->isInIntro()) memset(&_currentPal[255 * 4], 0, 4); _system->setPalette(_currentPal, 0, PAL_ENTRIES); @@ -238,7 +239,7 @@ void Gfx::palToBlack(PalEntry *src_pal, double percent) { } // Make 256th color black. See bug #1256368 - if (_vm->getFeatures() & GF_MAC_RESOURCES) + if (_vm->getFeatures() & GF_MAC_RESOURCES && !_vm->_scene->isInIntro()) memset(&_currentPal[255 * 4], 0, 4); _system->setPalette(_currentPal, 0, PAL_ENTRIES); @@ -312,7 +313,7 @@ void Gfx::blackToPal(PalEntry *src_pal, double percent) { } // Make 256th color black. See bug #1256368 - if (_vm->getFeatures() & GF_MAC_RESOURCES) + if (_vm->getFeatures() & GF_MAC_RESOURCES && !_vm->_scene->isInIntro()) memset(&_currentPal[255 * 4], 0, 4); _system->setPalette(_currentPal, 0, PAL_ENTRIES); -- cgit v1.2.3