From 4a9ac1497f5b62491ce55c89ca36bfa43472c297 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Thu, 9 Mar 2006 22:03:13 +0000 Subject: Reset font before calculating number of lines to display in the list. Fixes returning to a list display from a plugin that changes the display font. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8982 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 5 +++-- 1 file 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) void gui_list_put_selection_in_screen(struct gui_list * gui_list, bool put_from_end) { + gui_list->display->setfont(FONT_UI); gui_textarea_update_nblines(gui_list->display); int nb_lines=gui_list->display->nb_lines; if(put_from_end) @@ -346,8 +347,8 @@ void gui_list_select_previous(struct gui_list * gui_list) * we jump to a new page if there are more items*/ if( item_pos < 0 && gui_list->start_item > 0 ) gui_list->start_item = gui_list->selected_item-nb_lines+1; - if( gui_list->start_item < 0 ) - gui_list->start_item = 0; + if( gui_list->start_item < 0 ) + gui_list->start_item = 0; } else { -- cgit v1.2.3