Added new custom splash.

- Custom splash now can be loaded from SD card.
This commit is contained in:
dqs105 2020-08-27 23:07:48 +08:00
parent 0852bf89f0
commit 8edaa1e51e
3 changed files with 103 additions and 1 deletions

View file

@ -634,7 +634,8 @@ BMPView::BMPView(NavigationView& nav) {
}
void BMPView::paint(Painter&) {
portapack::display.drawBMP({(240 - 230) / 2, (320 - 50) / 2 - 10}, splash_bmp, false);
if(!portapack::display.drawRAW({ 0, 0 }, "splash.data"))
portapack::display.drawBMP({(240 - 230) / 2, (320 - 50) / 2 - 10}, splash_bmp, false);
}
/* NotImplementedView ****************************************************/