From 69af4ce9f4dff2631c794da140f24466460288a8 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 4 Oct 2009 19:49:47 +0000 Subject: SCI/newgui: implemented kPalette / set intensity svn-id: r44631 --- engines/sci/gui/gui_gfx.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/sci/gui/gui_gfx.cpp') 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; -- cgit v1.2.3