fixes for partly off-screen bitmap, remove temporary debug changes

This commit is contained in:
2023-04-08 20:52:15 +02:00
parent 0d9565dbb7
commit edd003a541
2 changed files with 9 additions and 12 deletions
+1 -4
View File
@@ -228,8 +228,6 @@ static void input_sound_effect()
static const char* main_menu_opts[] = {
"Manual mode",
"Calibration",
"Moderately long text",
"Very very long text that slides",
NULL
};
@@ -337,7 +335,7 @@ static void screen_manual_menu(GuiEvent event)
static void screen_menu(GuiEvent event, const char **options, menu_callback_t cb) {
bool menu_changed = false;
uint32_t tickNow = xTaskGetTickCount();
const uint32_t tickNow = xTaskGetTickCount();
struct menu_state *menu = &s_app.page.menu;
@@ -352,7 +350,6 @@ static void screen_menu(GuiEvent event, const char **options, menu_callback_t cb
menu->len++;
opt++;
}
menu->pos = menu->len - 1; // FIXME temporary, for debug
break;
case GUI_EVENT_SCREEN_TICK: