Fix crash after touching below active menu

pull/8/head
erikkaashoek 5 years ago
parent da41fc8eb6
commit b798ea2649

@ -1867,6 +1867,9 @@ menu_apply_touch(void)
y += MENU_BUTTON_HEIGHT; y += MENU_BUTTON_HEIGHT;
continue; continue;
} }
if (MT_MASK(menu[i].type) == MT_NONE) {
break;
}
int active_button_start; int active_button_start;
if (menu[i].type & MT_FORM) { if (menu[i].type & MT_FORM) {
active_button_start = (LCD_WIDTH - MENU_FORM_WIDTH)/2; active_button_start = (LCD_WIDTH - MENU_FORM_WIDTH)/2;

Loading…
Cancel
Save

Powered by TurnKey Linux.