mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
e682143af5
commit
3c1e9ca558
9 changed files with 124 additions and 86 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue