WiP: remove legacy fonts
This commit is contained in:
committed by
Raphael Coeffic
parent
8d6a7c2da5
commit
b40441f0c0
@@ -115,7 +115,6 @@ if(PCB STREQUAL X10 OR PCB STREQUAL X12S OR PCB STREQUAL NV14)
|
||||
../../../../../gui/colorlcd/fonts.cpp
|
||||
../../../../../gui/colorlcd/colors.cpp
|
||||
../../../../../thirdparty/libopenui/src/bitmapbuffer.cpp
|
||||
../../../../../thirdparty/libopenui/src/libopenui_globals.cpp
|
||||
../../../../../targets/${TARGET_DIR}/sdram_driver.c
|
||||
../../../../../targets/common/arm/stm32/sdio_sd.c
|
||||
../../../../../targets/common/arm/stm32/rtc_driver.cpp
|
||||
|
||||
@@ -72,10 +72,7 @@ const uint8_t LBM_OK[] = {
|
||||
void bootloaderInitScreen()
|
||||
{
|
||||
backlightEnable(BACKLIGHT_LEVEL_MAX);
|
||||
|
||||
// TODO: load/decompress bitmaps
|
||||
extern void loadFonts();
|
||||
loadFonts();
|
||||
// TODO: init LVGL
|
||||
}
|
||||
|
||||
static void bootloaderDrawTitle(unsigned int x, const char* text)
|
||||
|
||||
@@ -76,11 +76,7 @@ const uint8_t LBM_OK[] = {
|
||||
void bootloaderInitScreen()
|
||||
{
|
||||
backlightEnable(BACKLIGHT_LEVEL_MAX);
|
||||
|
||||
// TODO: load/decompress bitmaps
|
||||
extern void loadFonts();
|
||||
loadFonts();
|
||||
|
||||
// TODO: init LVGL
|
||||
}
|
||||
|
||||
static void bootloaderDrawTitle(const char* text)
|
||||
|
||||
@@ -1286,7 +1286,6 @@ void LCD_LayerInit() {
|
||||
LTDC_DitherCmd(ENABLE);
|
||||
}
|
||||
|
||||
extern void loadFonts();
|
||||
const char* boardLcdType = "";
|
||||
|
||||
void LCD_SetLayer(uint32_t layer)
|
||||
@@ -1302,15 +1301,17 @@ void LCD_SetLayer(uint32_t layer)
|
||||
currentLayer = layer;
|
||||
}
|
||||
|
||||
void lcdInit(void) {
|
||||
void lcdInit(void)
|
||||
{
|
||||
// Clear buffers first
|
||||
memset(LCD_FIRST_FRAME_BUFFER, 0, sizeof(LCD_FIRST_FRAME_BUFFER));
|
||||
memset(LCD_SECOND_FRAME_BUFFER, 0, sizeof(LCD_SECOND_FRAME_BUFFER));
|
||||
|
||||
loadFonts();
|
||||
/* Configure the LCD SPI+RESET pins */
|
||||
lcdSpiConfig();
|
||||
|
||||
// TODO: init lVGL
|
||||
|
||||
/* Reset the LCD --------------------------------------------------------*/
|
||||
lcdReset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user