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
1 changed files with 5 additions and 0 deletions

View File

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