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/quickscreen.c | |
| 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/quickscreen.c')
| -rw-r--r-- | apps/gui/quickscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 4e55dfe..9c850b7 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c @@ -207,7 +207,7 @@ static void gui_quickscreen_draw(struct gui_quickscreen *qs, value = option_get_valuestring((struct settings_list*)qs->items[i], buf, MAX_PATH, temp); - if (vps[screen][i].height < display->char_height*2) + if (vps[screen][i].height < display->getcharheight()*2) { char text[MAX_PATH]; snprintf(text, MAX_PATH, "%s: %s", title, value); |