SCI: GfxPalette::kernelSetIntensity() now also triggers throttler - somewhat "fixes" lb2cd when selecting play game

svn-id: r50108
This commit is contained in:
Martin Kiewitz 2010-06-21 10:14:04 +00:00
parent 473ae1c11e
commit 98196b8af6

View File

@ -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) {