diff options
author | Max Horn | 2011-02-07 17:52:38 +0000 |
---|---|---|
committer | Max Horn | 2011-02-07 17:52:38 +0000 |
commit | ab039812e7d0a0202317c61a2cb64874e4d0c410 (patch) | |
tree | c3069b36ba6e18068fa343416acf485e2d0728e4 /engines/saga | |
parent | 8981fa3f164aa8f397df2af8b85d6edfa4bdd883 (diff) | |
download | scummvm-rg350-ab039812e7d0a0202317c61a2cb64874e4d0c410.tar.gz scummvm-rg350-ab039812e7d0a0202317c61a2cb64874e4d0c410.tar.bz2 scummvm-rg350-ab039812e7d0a0202317c61a2cb64874e4d0c410.zip |
COMMON: OSystem now has a PaletteManager
svn-id: r55806
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/gfx.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp index 77842acc7b..771284f632 100644 --- a/engines/saga/gfx.cpp +++ b/engines/saga/gfx.cpp @@ -216,7 +216,7 @@ void Gfx::setPalette(const PalEntry *pal, bool full) { if ((_vm->getPlatform() == Common::kPlatformMacintosh) && !_vm->_scene->isInIntro()) memset(&_currentPal[255 * 4], 0, 4); - _system->setPalette(_currentPal, 0, PAL_ENTRIES); + _system->getPaletteManager()->setPalette(_currentPal, 0, PAL_ENTRIES); } void Gfx::setPaletteColor(int n, int r, int g, int b) { @@ -243,7 +243,7 @@ void Gfx::setPaletteColor(int n, int r, int g, int b) { } if (update) - _system->setPalette(_currentPal, n, 1); + _system->getPaletteManager()->setPalette(_currentPal, n, 1); } void Gfx::getCurrentPal(PalEntry *src_pal) { @@ -325,7 +325,7 @@ void Gfx::palToBlack(PalEntry *srcPal, double percent) { if ((_vm->getPlatform() == Common::kPlatformMacintosh) && !_vm->_scene->isInIntro()) memset(&_currentPal[255 * 4], 0, 4); - _system->setPalette(_currentPal, 0, PAL_ENTRIES); + _system->getPaletteManager()->setPalette(_currentPal, 0, PAL_ENTRIES); } void Gfx::blackToPal(PalEntry *srcPal, double percent) { @@ -392,7 +392,7 @@ void Gfx::blackToPal(PalEntry *srcPal, double percent) { if ((_vm->getPlatform() == Common::kPlatformMacintosh) && !_vm->_scene->isInIntro()) memset(&_currentPal[255 * 4], 0, 4); - _system->setPalette(_currentPal, 0, PAL_ENTRIES); + _system->getPaletteManager()->setPalette(_currentPal, 0, PAL_ENTRIES); } #ifdef ENABLE_IHNM @@ -455,7 +455,7 @@ void Gfx::palFade(PalEntry *srcPal, int16 from, int16 to, int16 start, int16 num // Color 0 should always be black in IHNM memset(&fadePal[0 * 4], 0, 4); - _system->setPalette(&fadePal[start * 4], start, numColors); + _system->getPaletteManager()->setPalette(&fadePal[start * 4], start, numColors); } #endif |