diff options
author | Johannes Schickel | 2009-06-29 16:49:14 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-29 16:49:14 +0000 |
commit | 80a4a2dd8e047298e7d7d385005a7049d25bc675 (patch) | |
tree | fd23c302e7965085111b729e60adae3c0829f882 /engines/kyra | |
parent | 6f46b6923684626cb1248872a6448078420ad819 (diff) | |
download | scummvm-rg350-80a4a2dd8e047298e7d7d385005a7049d25bc675.tar.gz scummvm-rg350-80a4a2dd8e047298e7d7d385005a7049d25bc675.tar.bz2 scummvm-rg350-80a4a2dd8e047298e7d7d385005a7049d25bc675.zip |
Cleanup GUI_HoF::setupPalette.
svn-id: r41950
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/gui_hof.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/kyra/gui_hof.cpp b/engines/kyra/gui_hof.cpp index e1c22d6d78..5a3317a131 100644 --- a/engines/kyra/gui_hof.cpp +++ b/engines/kyra/gui_hof.cpp @@ -802,14 +802,9 @@ void GUI_HoF::createScreenThumbnail(Graphics::Surface &dst) { void GUI_HoF::setupPalette() { _screen->copyPalette(1, 0); - uint8 *palette = _screen->getPalette(0).getData(); - for (int i = 0; i < 768; ++i) - palette[i] >>= 1; - - static const uint8 guiPal[] = { 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFc, 0xFD, 0xFE }; - - for (uint i = 0; i < ARRAYSIZE(guiPal); ++i) - _screen->getPalette(0).copy(_screen->getPalette(1), guiPal[i], 1); + Palette &pal = _screen->getPalette(0); + for (int i = 0; i < 741; ++i) + pal[i] >>= 1; if (_isDeathMenu) _screen->fadePalette(_screen->getPalette(0), 0x64); |