Fix OLED screen showing content from previous screen on empty lines in caddy view

This commit is contained in:
Rembrand van Lakwijk 2019-09-10 17:23:44 +02:00
parent c71fe6e1dc
commit 878f09bbdf

View file

@ -341,6 +341,11 @@ void DiskCaddy::ShowSelectedImage(u32 index)
if (y >= screenLCD->Height()) if (y >= screenLCD->Height())
break; break;
} }
while (y < screenLCD->Height()) {
memset(buffer, ' ', screenLCD->Width()/screenLCD->GetFontWidth());
screenLCD->PrintText(false, x, y, buffer, BkColour, BkColour);
y += screenLCD->GetFontHeight();
}
screenLCD->SwapBuffers(); screenLCD->SwapBuffers();
} }
} }