Flush screen buffer to the display in adjust menu

The return value (that flagged for redraw) was ignored when handling input in the adjust menu.
This commit is contained in:
Mikael Degerfält 2019-07-17 11:53:56 +02:00
parent 9f7fbb60c3
commit bae4956ea6

View file

@ -346,9 +346,9 @@ int updateAdjustMenu(uint32_t timeNow, KeyState &input, bool firstRun, bool draw
currentMenu->saveFunc(*currentMenu);
} else if( adjustCurrent == 1) {
handleInput(currentMenu, timeNow, buttons, &pos1, 20, 0);
redraw |= handleInput(currentMenu, timeNow, buttons, &pos1, 20, 0);
} else {
handleInput(currentMenu, timeNow, buttons, &pos2, 50, 1);
redraw |= handleInput(currentMenu, timeNow, buttons, &pos2, 50, 1);
}
// Keep adjustCurrent in range