diff options
author | Martin Kiewitz | 2009-10-20 16:11:31 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-20 16:11:31 +0000 |
commit | 361977e7ed074ab0a099360ef58a0bf5a8b5182a (patch) | |
tree | 28656df38580226fcb90b4ab1601c630c9dca13f /engines/sci/gui/gui.cpp | |
parent | 55dd109653c56c2847a06f9acb2fc3bf3834f730 (diff) | |
download | scummvm-rg350-361977e7ed074ab0a099360ef58a0bf5a8b5182a.tar.gz scummvm-rg350-361977e7ed074ab0a099360ef58a0bf5a8b5182a.tar.bz2 scummvm-rg350-361977e7ed074ab0a099360ef58a0bf5a8b5182a.zip |
SCI/newgui: kPalette cleanup, preparing for sq5 paletteAnimate support
svn-id: r45273
Diffstat (limited to 'engines/sci/gui/gui.cpp')
-rw-r--r-- | engines/sci/gui/gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 24b87f68b9..a4d4dac4e1 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -457,20 +457,20 @@ int16 SciGui::picNotValid(int16 newPicNotValid) { } -void SciGui::paletteSet(int resourceNo, int flags) { - _palette->setFromResource(resourceNo, flags); +void SciGui::paletteSet(GuiResourceId resourceId, uint16 flags) { + _palette->setFromResource(resourceId, flags); } -int16 SciGui::paletteFind(int r, int g, int b) { +int16 SciGui::paletteFind(uint16 r, uint16 g, uint16 b) { return _palette->matchColor(&_palette->_sysPalette, r, g, b) & 0xFF; } -void SciGui::paletteSetIntensity(int fromColor, int toColor, int intensity, bool setPalette) { +void SciGui::paletteSetIntensity(uint16 fromColor, uint16 toColor, uint16 intensity, bool setPalette) { _palette->setIntensity(fromColor, toColor, intensity, setPalette); } -void SciGui::paletteAnimate(int fromColor, int toColor, int speed) { - // kAnimate gets called for Amiga as well, but for colors above 32, so it doesnt make sense +void SciGui::paletteAnimate(uint16 fromColor, uint16 toColor, uint16 speed) { + // we are also called on Amiga as well, but for colors above 32, so it doesnt make sense if (!_s->resMan->isVGA()) return; |