From 7471f9cdbed6c85c9504c107797f5ae8fa07b8bd Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 10 Nov 2022 23:43:18 +0300 Subject: [PATCH] Fix palette fading --- src/interpreter_lib.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/interpreter_lib.cc b/src/interpreter_lib.cc index ca61997..350bfe0 100644 --- a/src/interpreter_lib.cc +++ b/src/interpreter_lib.cc @@ -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.