Fix conversions progress screen
This commit is contained in:
@@ -33,12 +33,15 @@
|
|||||||
static void drawProgressScreen(const char* filename, int progress, int total)
|
static void drawProgressScreen(const char* filename, int progress, int total)
|
||||||
{
|
{
|
||||||
#if defined(COLORLCD)
|
#if defined(COLORLCD)
|
||||||
OpenTxTheme* l_theme = static_cast<OpenTxTheme*>(theme);
|
lcdInitDirectDrawing();
|
||||||
|
|
||||||
lcd->reset();
|
OpenTxTheme* l_theme = static_cast<OpenTxTheme*>(theme);
|
||||||
l_theme->drawBackground(lcd);
|
l_theme->drawBackground(lcd);
|
||||||
lcd->drawText(LCD_W/2, LCD_H/2 - 30, STR_CONVERTING, FONT(XL) | CENTERED | COLOR_THEME_WARNING);
|
|
||||||
lcd->drawText(LCD_W/2, LCD_H/2, filename, FONT(STD) | CENTERED | COLOR_THEME_SECONDARY1);
|
lcd->drawText(LCD_W / 2, LCD_H / 2 - 30, STR_CONVERTING,
|
||||||
|
FONT(XL) | CENTERED | COLOR_THEME_WARNING);
|
||||||
|
lcd->drawText(LCD_W / 2, LCD_H / 2, filename,
|
||||||
|
FONT(STD) | CENTERED | COLOR_THEME_SECONDARY1);
|
||||||
|
|
||||||
l_theme->drawProgressBar(lcd,
|
l_theme->drawProgressBar(lcd,
|
||||||
LCD_W / 4,
|
LCD_W / 4,
|
||||||
@@ -46,9 +49,13 @@ static void drawProgressScreen(const char* filename, int progress, int total)
|
|||||||
LCD_W / 2,
|
LCD_W / 2,
|
||||||
20,
|
20,
|
||||||
progress, total);
|
progress, total);
|
||||||
|
lcdRefresh();
|
||||||
|
|
||||||
|
// invalidate screen to enable quick return
|
||||||
|
// to normal display routine
|
||||||
|
lv_obj_invalidate(lv_scr_act());
|
||||||
|
|
||||||
WDG_RESET();
|
WDG_RESET();
|
||||||
lcdRefresh();
|
|
||||||
#else
|
#else
|
||||||
// TODO: BW progress screen
|
// TODO: BW progress screen
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user