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
commit 2a11b59ab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 ****************************************************/