5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
25 const uint8_t __bmp_splash
[] __ALIGNED(4) {
26 #include "bmp_splash.lbm"
28 Bitmap
BMP_SPLASH(BMP_RGB565
, (const uint16_t *)__bmp_splash
);
32 static bool loadImgFromSD
= true;
33 static BitmapBuffer
* splashImg
= nullptr;
35 if (loadImgFromSD
&& splashImg
== nullptr) {
36 bool sd_mounted
= sdMounted();
39 splashImg
= BitmapBuffer::load(BITMAPS_PATH
"/" SPLASH_FILE
);
40 loadImgFromSD
= false;
48 lcd
->drawBitmap((LCD_W
- splashImg
->getWidth())/2,
49 (LCD_H
- splashImg
->getHeight())/2,
53 lcd
->drawBitmap((LCD_W
- BMP_SPLASH
.getWidth())/2,
54 (LCD_H
- BMP_SPLASH
.getHeight())/2,