aboutsummaryrefslogtreecommitdiff
path: root/saga/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-08-13 19:41:11 +0000
committerEugene Sandulenko2005-08-13 19:41:11 +0000
commit8c4494578e8273841473934facb68e6476ee16ac (patch)
treefebcdc982e120914997bdb45bffb745751f39c4a /saga/gfx.cpp
parent91a96ef5cdd9c71d4434768d87d0a46c34e6d33c (diff)
downloadscummvm-rg350-8c4494578e8273841473934facb68e6476ee16ac.tar.gz
scummvm-rg350-8c4494578e8273841473934facb68e6476ee16ac.tar.bz2
scummvm-rg350-8c4494578e8273841473934facb68e6476ee16ac.zip
Fix bug #1258537 "ITE: Introduction text is black"
svn-id: r18677
Diffstat (limited to 'saga/gfx.cpp')
-rw-r--r--saga/gfx.cpp7
1 files changed, 4 insertions, 3 deletions
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);