diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 472c01c92d..7242daf30f 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -108,6 +108,7 @@ void gui_list_flash(struct gui_list * gui_list) | |||
108 | void gui_list_put_selection_in_screen(struct gui_list * gui_list, | 108 | void gui_list_put_selection_in_screen(struct gui_list * gui_list, |
109 | bool put_from_end) | 109 | bool put_from_end) |
110 | { | 110 | { |
111 | gui_list->display->setfont(FONT_UI); | ||
111 | gui_textarea_update_nblines(gui_list->display); | 112 | gui_textarea_update_nblines(gui_list->display); |
112 | int nb_lines=gui_list->display->nb_lines; | 113 | int nb_lines=gui_list->display->nb_lines; |
113 | if(put_from_end) | 114 | if(put_from_end) |
@@ -346,8 +347,8 @@ void gui_list_select_previous(struct gui_list * gui_list) | |||
346 | * we jump to a new page if there are more items*/ | 347 | * we jump to a new page if there are more items*/ |
347 | if( item_pos < 0 && gui_list->start_item > 0 ) | 348 | if( item_pos < 0 && gui_list->start_item > 0 ) |
348 | gui_list->start_item = gui_list->selected_item-nb_lines+1; | 349 | gui_list->start_item = gui_list->selected_item-nb_lines+1; |
349 | if( gui_list->start_item < 0 ) | 350 | if( gui_list->start_item < 0 ) |
350 | gui_list->start_item = 0; | 351 | gui_list->start_item = 0; |
351 | } | 352 | } |
352 | else | 353 | else |
353 | { | 354 | { |