diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-09-07 20:09:11 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-09-07 20:09:11 +0000 |
| commit | 3c1e9ca55892ae342c9efb396cd9f49f3d403a5a (patch) | |
| tree | 92b4bfa29308aae41843c47350b27385fae35b11 /apps/gui/charcell | |
| parent | e682143af578d9643f45712f0dcbcc13e94597d4 (diff) | |
| download | rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.zip rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.gz rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.bz2 rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.xz | |
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
Diffstat (limited to 'apps/gui/charcell')
| -rw-r--r-- | apps/gui/charcell/list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/charcell/list.c b/apps/gui/charcell/list.c index 2df030f..b1d0adc 100644 --- a/apps/gui/charcell/list.c +++ b/apps/gui/charcell/list.c @@ -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]; |