Fix display of more the 7 tools in BW screens (#7270)
This commit is contained in:
@@ -25,15 +25,20 @@ extern uint8_t g_moduleIdx;
|
|||||||
|
|
||||||
bool addRadioTool(uint8_t index, const char * label)
|
bool addRadioTool(uint8_t index, const char * label)
|
||||||
{
|
{
|
||||||
int8_t sub = menuVerticalPosition - HEADER_LINE;
|
if (index >= menuVerticalOffset) {
|
||||||
LcdFlags attr = (sub == index ? INVERS : 0);
|
uint8_t lineIndex = index - menuVerticalOffset;
|
||||||
coord_t y = MENU_HEADER_HEIGHT + 1 + index * FH;
|
if (lineIndex < NUM_BODY_LINES) {
|
||||||
lcdDrawNumber(3, y, index + 1, LEADING0|LEFT, 2);
|
int8_t sub = menuVerticalPosition - HEADER_LINE;
|
||||||
lcdDrawText(3*FW, y, label, (sub == index ? INVERS : 0));
|
LcdFlags attr = (sub == index ? INVERS : 0);
|
||||||
if (attr && s_editMode > 0) {
|
coord_t y = MENU_HEADER_HEIGHT + lineIndex * FH;
|
||||||
s_editMode = 0;
|
lcdDrawNumber(3, y, index + 1, LEADING0 | LEFT, 2);
|
||||||
killAllEvents();
|
lcdDrawText(3 * FW, y, label, (sub == index ? INVERS : 0));
|
||||||
return true;
|
if (attr && s_editMode > 0) {
|
||||||
|
s_editMode = 0;
|
||||||
|
killAllEvents();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user