diff --git a/ui_sa.c b/ui_sa.c index f66e036..08c569f 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -2274,10 +2274,15 @@ int invoke_quick_menu(int y) } #define YSTEP 8 +int double_space = false; + int add_quick_menu(char *buf, int x, int y, menuitem_t *menu) { ili9341_drawstring(buf, x, y); - y += YSTEP + YSTEP/2 ; + if (double_space) + y += YSTEP + YSTEP; + else + y += YSTEP + YSTEP/2 ; if (max_quick_menu LCD_HEIGHT*3 && double_space) { + double_space = false; + goto redraw_cal_status; + } + if (y*3 < LCD_HEIGHT*2 && !double_space) { + double_space = true; + goto redraw_cal_status; + } + // ili9341_set_background(LCD_BG_COLOR); if (!get_waterfall()) { // Do not draw bottom level if in waterfall mode // Bottom level