mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-12 12:40:58 +00:00
SCI: change actual setting of palette, fixes gk1 palette issue when talking to grace indirectly caused by r47955, seems to also fix jones palette issue, could cause regressions
svn-id: r48474
This commit is contained in:
parent
7e1f395e34
commit
bc311445f8
@ -192,10 +192,14 @@ void GfxPalette::set(Palette *sciPal, bool force, bool forceRealMerge) {
|
||||
bool paletteChanged;
|
||||
|
||||
if (force || sciPal->timestamp != systime) {
|
||||
paletteChanged = merge(sciPal, &_sysPalette, force, forceRealMerge);
|
||||
_sysPaletteChanged |= merge(sciPal, &_sysPalette, force, forceRealMerge);
|
||||
sciPal->timestamp = _sysPalette.timestamp;
|
||||
if (paletteChanged && _screen->_picNotValid == 0 && systime != _sysPalette.timestamp)
|
||||
if (_sysPaletteChanged && _screen->_picNotValid == 0) { // && systime != _sysPalette.timestamp) {
|
||||
// Removed timestamp checking, because this shouldnt be needed anymore. I'm leaving it commented just in
|
||||
// case this causes regressions
|
||||
setOnScreen();
|
||||
_sysPaletteChanged = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,8 @@ private:
|
||||
uint32 _palVaryStart;
|
||||
uint32 _palVaryEnd;
|
||||
|
||||
bool _sysPaletteChanged;
|
||||
|
||||
Common::Array<PalSchedule> _schedules;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user