From 694bc1b8294c742c31c761a237532186415bba92 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Sat, 25 Jul 2020 21:38:56 +0300 Subject: [PATCH] Fix erase on input --- ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.c b/ui.c index dd009c4..0394f90 100644 --- a/ui.c +++ b/ui.c @@ -1532,7 +1532,7 @@ draw_numeric_input(const char *buf) } // erase last // ili9341_fill(x, LCD_HEIGHT-NUM_INPUT_HEIGHT+4, NUM_FONT_GET_WIDTH+2+8, NUM_FONT_GET_WIDTH+2+8, config.menu_normal_color); - ili9341_fill(x, LCD_HEIGHT-NUM_INPUT_HEIGHT+4, LCD_WIDTH-64, NUM_FONT_GET_WIDTH+2+8, config.menu_normal_color); + ili9341_fill(x, LCD_HEIGHT-NUM_INPUT_HEIGHT+4, LCD_WIDTH-x-1, NUM_FONT_GET_WIDTH+2+8, config.menu_normal_color); if (buf[0] == 0 && kp_help_text != NULL) { ili9341_set_foreground(fg); ili9341_set_background(bg);