mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
KYRA: Fix palette glitch when quitting while viewing the family album in Kyra3.
Thanks to eriktorbjorn for noticing.
This commit is contained in:
parent
d05f90fa0f
commit
160c5f4345
@ -718,6 +718,13 @@ void Screen::fadePalette(const Palette &pal, int delay, const UpdateFunctor *upF
|
||||
_vm->delay((delayAcc >> 8) * 1000 / 60);
|
||||
delayAcc &= 0xFF;
|
||||
}
|
||||
|
||||
// In case we should quit we setup the final palette here. This avoids
|
||||
// ugly palette glitches when quitting while fading. This can for example
|
||||
// be noticed when quitting while viewing the family album in Kyra3.
|
||||
if (_vm->shouldQuit()) {
|
||||
setScreenPalette(pal);
|
||||
}
|
||||
}
|
||||
|
||||
void Screen::getFadeParams(const Palette &pal, int delay, int &delayInc, int &diff) {
|
||||
|
Loading…
Reference in New Issue
Block a user