diff --git a/radio/src/targets/pl18/bootloader/boot_menu.cpp b/radio/src/targets/pl18/bootloader/boot_menu.cpp index 951796ef37d..9b7333b27b4 100644 --- a/radio/src/targets/pl18/bootloader/boot_menu.cpp +++ b/radio/src/targets/pl18/bootloader/boot_menu.cpp @@ -45,11 +45,6 @@ const uint8_t __bmp_usb_plugged[] { }; LZ4Bitmap BMP_USB_PLUGGED(BMP_ARGB4444, __bmp_usb_plugged); -const uint8_t __bmp_background[] { -#include "bmp_background.lbm" -}; -LZ4Bitmap BMP_BACKGROUND(BMP_ARGB4444, __bmp_background); - #define BL_GREEN COLOR2FLAGS(RGB(73, 219, 62)) #define BL_RED COLOR2FLAGS(RGB(229, 32, 30)) #define BL_BACKGROUND COLOR2FLAGS(BLACK) @@ -79,30 +74,7 @@ static void bootloaderDrawFooter() static void bootloaderDrawBackground() { - // we have plenty of memory, let's cache that background - static BitmapBuffer* _background = nullptr; - - if (!_background) { - _background = new BitmapBuffer(BMP_RGB565, LCD_W, LCD_H); - - for (int i=0; idrawBitmap(i, j, bg_bmp); - } - } - _background->drawFilledRect(0, 0, LCD_W, LCD_H, SOLID, - COLOR2FLAGS(BLACK), OPACITY(4)); - } - - if (_background) { - lcd->drawBitmap(0, 0, _background); - lcd->drawFilledRect(0, 0, LCD_W, LCD_H, SOLID, - COLOR2FLAGS(BLACK), OPACITY(4)); - } - else { lcd->clear(BL_BACKGROUND); - } } void bootloaderDrawScreen(BootloaderState st, int opt, const char* str)