Fix palette fading
This commit is contained in:
parent
fe9ba9171e
commit
7471f9cdbe
|
@ -415,6 +415,7 @@ static void _interpretFadePaletteBK(unsigned char* oldPalette, unsigned char* ne
|
||||||
step = 0;
|
step = 0;
|
||||||
delta = 0;
|
delta = 0;
|
||||||
|
|
||||||
|
// TODO: Check if it needs throttling.
|
||||||
if (duration != 0.0) {
|
if (duration != 0.0) {
|
||||||
while (step < steps) {
|
while (step < steps) {
|
||||||
if (delta != 0) {
|
if (delta != 0) {
|
||||||
|
@ -423,6 +424,7 @@ static void _interpretFadePaletteBK(unsigned char* oldPalette, unsigned char* ne
|
||||||
}
|
}
|
||||||
|
|
||||||
_setSystemPalette(palette);
|
_setSystemPalette(palette);
|
||||||
|
renderPresent();
|
||||||
|
|
||||||
previousTime = time;
|
previousTime = time;
|
||||||
step += delta;
|
step += delta;
|
||||||
|
@ -438,6 +440,7 @@ static void _interpretFadePaletteBK(unsigned char* oldPalette, unsigned char* ne
|
||||||
}
|
}
|
||||||
|
|
||||||
_setSystemPalette(newPalette);
|
_setSystemPalette(newPalette);
|
||||||
|
renderPresent();
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: Unused.
|
// NOTE: Unused.
|
||||||
|
|
Loading…
Reference in New Issue