Fix flicker

This commit is contained in:
Raphael Coeffic
2021-05-09 08:53:08 +02:00
parent 9f50543615
commit 8ce1fcacb2
@@ -67,11 +67,12 @@ static void bootloaderDrawFooter()
void bootloaderDrawScreen(BootloaderState st, int opt, const char* str) void bootloaderDrawScreen(BootloaderState st, int opt, const char* str)
{ {
#if defined(COLORLCD) // shows current layer on LCD
lcdNextLayer(); lcdRefresh();
#endif
lcd->clear(DEFAULT_BGCOLOR); // swap back & front buffers
lcdNextLayer();
lcd->clear(BL_BACKGROUND);
if (st == ST_START) { if (st == ST_START) {
bootloaderDrawTitle(88, BOOTLOADER_TITLE); bootloaderDrawTitle(88, BOOTLOADER_TITLE);