mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Fix portrait color. I just missed dependency from barometer.
svn-id: r19009
This commit is contained in:
parent
49e8835c3c
commit
54449c920b
@ -615,9 +615,9 @@ void Interface::draw() {
|
||||
_vm->_gfx->setPaletteColor(kIHNMColorPortrait, 0xff, 0xff, 0xff);
|
||||
else
|
||||
_vm->_gfx->setPaletteColor(kIHNMColorPortrait,
|
||||
_portraitBgColor.red,
|
||||
_portraitBgColor.green,
|
||||
_portraitBgColor.blue);
|
||||
_vm->_spiritualBarometer * _portraitBgColor.red / 256,
|
||||
_vm->_spiritualBarometer * _portraitBgColor.green / 256,
|
||||
_vm->_spiritualBarometer * _portraitBgColor.blue / 256);
|
||||
}
|
||||
|
||||
if (_panelMode == kPanelMain || _panelMode == kPanelConverse ||
|
||||
|
@ -1848,7 +1848,7 @@ void Script::sfSetChapterPoints(SCRIPTFUNC_PARAMS) {
|
||||
int chapter = _vm->_scene->currentChapterNumber();
|
||||
|
||||
_vm->_ethicsPoints[chapter] = ethics;
|
||||
_vm->_spiritualBarometer = barometer;
|
||||
_vm->_spiritualBarometer = ethics * 256 / barometer;
|
||||
}
|
||||
|
||||
void Script::sfSetPortraitBgColor(SCRIPTFUNC_PARAMS) {
|
||||
|
Loading…
Reference in New Issue
Block a user