diff options
author | Martin Kiewitz | 2009-10-04 19:49:47 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-04 19:49:47 +0000 |
commit | 69af4ce9f4dff2631c794da140f24466460288a8 (patch) | |
tree | 5868238fc604bb39dc0a866e9e1ffef62dd64b0a /engines/sci/gui/gui_gfx.cpp | |
parent | 7c7e0445eed953e4af155932625e6dddc2cf4c9b (diff) | |
download | scummvm-rg350-69af4ce9f4dff2631c794da140f24466460288a8.tar.gz scummvm-rg350-69af4ce9f4dff2631c794da140f24466460288a8.tar.bz2 scummvm-rg350-69af4ce9f4dff2631c794da140f24466460288a8.zip |
SCI/newgui: implemented kPalette / set intensity
svn-id: r44631
Diffstat (limited to 'engines/sci/gui/gui_gfx.cpp')
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 6644517c0c..a1a8df786a 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -1224,6 +1224,10 @@ void SciGUIgfx::drawCell(GUIResourceId viewId, GUIViewLoopNo loopNo, GUIViewCell } } +void SciGUIgfx::PaletteSetIntensity(int fromColor, int toColor, int intensity, GUIPalette *destPalette) { + memset(destPalette->intensity + fromColor, intensity, toColor - fromColor); +} + void SciGUIgfx::PaletteAnimate(byte fromColor, byte toColor, int speed) { GUIColor col; int len = toColor - fromColor - 1; |