From 800397d175a8747234121460aa4a8d04ee2c40b8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:04:21 -0500 Subject: compile regexes before clearing boot screen --- menus.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'menus.c') diff --git a/menus.c b/menus.c index 3c574ec..a1d0a4e 100644 --- a/menus.c +++ b/menus.c @@ -258,20 +258,6 @@ void Show_Main_Menu(void) int show_item; int old_cursor_pos; - if ( (globals.MenuStatus.Type_Of_Menu != Main_Menu_On) || - (globals.MenuStatus.Error_Screen == YES) || - (globals.MenuStatus.Nonstd_Display == YES) ) { - LCD_clear(); - } - - LCD_entry=-1; - sig_dig = 4; - Submenu_extra_fine=NO; - - globals.MenuStatus.Type_Of_Menu=Main_Menu_On; - globals.MenuStatus.Error_Screen=NO; - globals.MenuStatus.Nonstd_Display=NO; - // update remote/local info before starting screen writes, to avoid // odd-looking pauses @@ -318,6 +304,21 @@ void Show_Main_Menu(void) g_free (step6); + if ( (globals.MenuStatus.Type_Of_Menu != Main_Menu_On) || + (globals.MenuStatus.Error_Screen == YES) || + (globals.MenuStatus.Nonstd_Display == YES) ) { + LCD_clear(); + } + + LCD_entry=-1; + sig_dig = 4; + Submenu_extra_fine=NO; + + globals.MenuStatus.Type_Of_Menu=Main_Menu_On; + globals.MenuStatus.Error_Screen=NO; + globals.MenuStatus.Nonstd_Display=NO; + + /* fill in unused cursor columns */ for (i=0; i<(menu_cursor_pos % LCD_max_entries_per_page); ++i) { LCD_row=i % LCD_rows; -- cgit