Fix OLED screen showing content from previous screen on empty lines in caddy view
This commit is contained in:
parent
c71fe6e1dc
commit
878f09bbdf
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue