Merge pull request #424 from intoxsick/custom-splash-screen-from-sd

Custom splash screen from sd
This commit is contained in:
Erwin Ried
2021-11-24 12:35:41 +01:00
committed by GitHub
3 changed files with 115 additions and 1 deletions

View File

@@ -670,7 +670,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.drawBMP2({ 0, 0 }, "splash.bmp"))
portapack::display.drawBMP({(240 - 230) / 2, (320 - 50) / 2 - 10}, splash_bmp, false);
}
/* NotImplementedView ****************************************************/