Progress screen refactoring
This commit is contained in:
@@ -20,21 +20,6 @@
|
||||
|
||||
#include "opentx.h"
|
||||
|
||||
const char * warningText = NULL;
|
||||
const char * warningInfoText;
|
||||
uint8_t warningInfoLength;
|
||||
uint8_t warningType;
|
||||
uint8_t warningResult = 0;
|
||||
uint8_t warningInfoFlags = ZCHAR;
|
||||
|
||||
void drawMessageBox(const char * title)
|
||||
{
|
||||
lcdDrawFilledRect(MENU_X, MENU_Y, MENU_W, 40, SOLID, ERASE);
|
||||
lcdDrawRect(MENU_X, MENU_Y, MENU_W, 40);
|
||||
lcdDrawSizedText(WARNING_LINE_X, WARNING_LINE_Y, title, WARNING_LINE_LEN);
|
||||
// could be a place for a warningInfoText
|
||||
}
|
||||
|
||||
const unsigned char ASTERISK_BITMAP[] = {
|
||||
#include "asterisk.lbm"
|
||||
};
|
||||
@@ -55,9 +40,11 @@ void drawAlertBox(const char * title, const char * text, const char * action)
|
||||
#endif
|
||||
|
||||
lcdDrawSolidFilledRect(0, 0, LCD_W, 32);
|
||||
|
||||
if (text) {
|
||||
lcdDrawTextAlignedLeft(5*FH, text);
|
||||
}
|
||||
|
||||
if (action) {
|
||||
lcdDrawTextAlignedLeft(7*FH, action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user