Change screens memebers char_width, char_height and nb_lines to functions returning a calculated value. Fixes FS #9361 because the values were calculated based on sysfont, not the user selected font.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18441 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2008-09-07 20:09:11 +00:00
parent e682143af5
commit 3c1e9ca558
9 changed files with 124 additions and 86 deletions

View file

@ -51,13 +51,13 @@ void list_draw(struct screen *display, struct viewport *parent,
int i;
int lines;
int start, end;
display->set_viewport(NULL);
lines = display->nb_lines;
lines = display->getnblines();
display->clear_display();
start = 0;
end = display->nb_lines;
end = display->getnblines();
gui_list->last_displayed_start_item[display->screen_type] =
gui_list->start_item[display->screen_type];