Added BMP file support.

- Now can load splash.bmp!
This commit is contained in:
dqs105 2020-08-28 12:23:52 +08:00
parent 7116ca3f91
commit 80f074b82f
3 changed files with 114 additions and 5 deletions

View file

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