Fix palette fading

This commit is contained in:
Alexander Batalov 2022-11-10 23:43:18 +03:00
parent fe9ba9171e
commit 7471f9cdbe
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,7 @@ static void _interpretFadePaletteBK(unsigned char* oldPalette, unsigned char* ne
step = 0;
delta = 0;
// TODO: Check if it needs throttling.
if (duration != 0.0) {
while (step < steps) {
if (delta != 0) {
@ -423,6 +424,7 @@ static void _interpretFadePaletteBK(unsigned char* oldPalette, unsigned char* ne
}
_setSystemPalette(palette);
renderPresent();
previousTime = time;
step += delta;
@ -438,6 +440,7 @@ static void _interpretFadePaletteBK(unsigned char* oldPalette, unsigned char* ne
}
_setSystemPalette(newPalette);
renderPresent();
}
// NOTE: Unused.