Fix lcd_custom_bootscreen compiler warning
This commit is contained in:
parent
f3dbe19669
commit
19ba91f77a
1 changed files with 5 additions and 3 deletions
|
@ -296,9 +296,11 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
|
||||||
|
|
||||||
void lcd_custom_bootscreen() {
|
void lcd_custom_bootscreen() {
|
||||||
constexpr u8g_uint_t left = (LCD_PIXEL_WIDTH - (CUSTOM_BOOTSCREEN_BMPWIDTH)) / 2,
|
constexpr u8g_uint_t left = (LCD_PIXEL_WIDTH - (CUSTOM_BOOTSCREEN_BMPWIDTH)) / 2,
|
||||||
top = (LCD_PIXEL_HEIGHT - (CUSTOM_BOOTSCREEN_BMPHEIGHT)) / 2,
|
top = (LCD_PIXEL_HEIGHT - (CUSTOM_BOOTSCREEN_BMPHEIGHT)) / 2;
|
||||||
right = left + CUSTOM_BOOTSCREEN_BMPWIDTH,
|
#if ENABLED(CUSTOM_BOOTSCREEN_INVERTED)
|
||||||
bottom = top + CUSTOM_BOOTSCREEN_BMPHEIGHT;
|
constexpr u8g_uint_t right = left + CUSTOM_BOOTSCREEN_BMPWIDTH,
|
||||||
|
bottom = top + CUSTOM_BOOTSCREEN_BMPHEIGHT;
|
||||||
|
#endif
|
||||||
u8g.firstPage();
|
u8g.firstPage();
|
||||||
do {
|
do {
|
||||||
u8g.drawBitmapP(
|
u8g.drawBitmapP(
|
||||||
|
|
Reference in a new issue