diff options
author | Dan Everton <dan@iocaine.org> | 2006-03-09 22:03:13 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-03-09 22:03:13 +0000 |
commit | 4a9ac1497f5b62491ce55c89ca36bfa43472c297 (patch) | |
tree | 0e146019a2ad0d91517a0be4dfe3aa693120a7c7 /apps/gui/list.c | |
parent | 7bc5bc4b495a6c31cce0e8df258b50f1bd3a7a44 (diff) | |
download | rockbox-4a9ac1497f5b62491ce55c89ca36bfa43472c297.tar.gz rockbox-4a9ac1497f5b62491ce55c89ca36bfa43472c297.zip |
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
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 | { |