aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-21 10:14:04 +0000
committerMartin Kiewitz2010-06-21 10:14:04 +0000
commit98196b8af672ecbf42738487e659fe905163819a (patch)
tree8e3779f891a54e0740ca7a194eba8f58ceee506b /engines/sci
parent473ae1c11efd6833fd0a9172b9fc54ee6ef66211 (diff)
downloadscummvm-rg350-98196b8af672ecbf42738487e659fe905163819a.tar.gz
scummvm-rg350-98196b8af672ecbf42738487e659fe905163819a.tar.bz2
scummvm-rg350-98196b8af672ecbf42738487e659fe905163819a.zip
SCI: GfxPalette::kernelSetIntensity() now also triggers throttler - somewhat "fixes" lb2cd when selecting play game
svn-id: r50108
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/palette.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 228e5dfced..bcf84095dc 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -395,8 +395,10 @@ void GfxPalette::kernelUnsetFlag(uint16 fromColor, uint16 toColor, uint16 flag)
void GfxPalette::kernelSetIntensity(uint16 fromColor, uint16 toColor, uint16 intensity, bool setPalette) {
memset(&_sysPalette.intensity[0] + fromColor, intensity, toColor - fromColor);
- if (setPalette)
+ if (setPalette) {
setOnScreen();
+ g_sci->getEngineState()->_throttleTrigger = true;
+ }
}
int16 GfxPalette::kernelFindColor(uint16 r, uint16 g, uint16 b) {