Use only the logo and background color as Splash screen.
This commit is contained in:
@@ -20,7 +20,7 @@ set(BITMAP_RLE_ARGS ${BITMAP_ARGS} --rle)
|
|||||||
set(MASK_RLE_ARGS ${MASK_ARGS} --rle)
|
set(MASK_RLE_ARGS ${MASK_ARGS} --rle)
|
||||||
|
|
||||||
add_bitmaps_target(${BITMAP_TARGET_PREFIX}_bitmaps "${RADIO_SRC_DIR}/bitmaps/480x272/bmp_*.png" "5/6/5" "${BITMAP_ARGS}")
|
add_bitmaps_target(${BITMAP_TARGET_PREFIX}_bitmaps "${RADIO_SRC_DIR}/bitmaps/480x272/bmp_*.png" "5/6/5" "${BITMAP_ARGS}")
|
||||||
add_png_target(${BITMAP_TARGET_PREFIX}_splash "${RADIO_SRC_DIR}/bitmaps/480x272/splash.png")
|
add_png_target(${BITMAP_TARGET_PREFIX}_splash "${RADIO_SRC_DIR}/bitmaps/480x272/big_logo.png")
|
||||||
|
|
||||||
add_bitmaps_target(${BITMAP_TARGET_PREFIX}_calibration_bitmaps "${RADIO_SRC_DIR}/bitmaps/480x272/calibration/bmp_*.png" "5/6/5" "${BITMAP_ARGS}")
|
add_bitmaps_target(${BITMAP_TARGET_PREFIX}_calibration_bitmaps "${RADIO_SRC_DIR}/bitmaps/480x272/calibration/bmp_*.png" "5/6/5" "${BITMAP_ARGS}")
|
||||||
add_bitmaps_target(${BITMAP_TARGET_PREFIX}_button_bitmaps "${RADIO_SRC_DIR}/bitmaps/480x272/button/alpha_*.png" "4/4/4/4" "${BITMAP_ARGS}")
|
add_bitmaps_target(${BITMAP_TARGET_PREFIX}_button_bitmaps "${RADIO_SRC_DIR}/bitmaps/480x272/button/alpha_*.png" "4/4/4/4" "${BITMAP_ARGS}")
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
@@ -23,11 +23,14 @@
|
|||||||
#if defined(SPLASH)
|
#if defined(SPLASH)
|
||||||
|
|
||||||
const uint8_t __bmp_splash[] {
|
const uint8_t __bmp_splash[] {
|
||||||
#include "splash.lbm"
|
#include "big_logo.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
void drawSplash()
|
void drawSplash()
|
||||||
{
|
{
|
||||||
|
constexpr LcdFlags splash_background_color =
|
||||||
|
COLOR2FLAGS(((0xC >> 3) << 11) | ((0x3F >> 2) << 5) | (0x66 >> 3));
|
||||||
|
|
||||||
static bool loadSplashImg = true;
|
static bool loadSplashImg = true;
|
||||||
static BitmapBuffer * splashImg = nullptr;
|
static BitmapBuffer * splashImg = nullptr;
|
||||||
|
|
||||||
@@ -43,7 +46,7 @@ void drawSplash()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd->clear();
|
lcd->clear(splash_background_color);
|
||||||
|
|
||||||
if (splashImg) {
|
if (splashImg) {
|
||||||
lcd->drawBitmap((LCD_W - splashImg->width())/2,
|
lcd->drawBitmap((LCD_W - splashImg->width())/2,
|
||||||
|
|||||||
Reference in New Issue
Block a user