Merge pull request #146 from Remboooo/remboooo/fix-oled-caddy
Fix OLED screen showing content from previous screen on empty lines in caddy view
This commit is contained in:
commit
7c5c812f61
1 changed files with 5 additions and 0 deletions
|
@ -349,6 +349,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