diff options
author | Thomas Martitz <kugel@rockbox.org> | 2013-04-16 16:06:13 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 14:13:48 +0100 |
commit | 49780944809651f28e8135bf6d67dcd8ceeb2585 (patch) | |
tree | 4893467ebcf509eeab6990905511f40c852b7f03 /apps/menus/time_menu.c | |
parent | 9a4686b563ac9e27615e1032792bd9878bb291f7 (diff) | |
download | rockbox-49780944809651f28e8135bf6d67dcd8ceeb2585.tar.gz rockbox-49780944809651f28e8135bf6d67dcd8ceeb2585.zip |
lcd-common: Remove support for custom line heights from viewport.
Since scrolling is now pixel-based this is not necessary anymore. custom line
height is handled by put_line() but can also possible to implement with
lcd_puts_scroll_func().
Change-Id: Iee9b12bf99afac93d95d2a1a6f5d5b4db237b21c
Diffstat (limited to 'apps/menus/time_menu.c')
-rw-r--r-- | apps/menus/time_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c index 1eb4bd68cc..9ef4f7323c 100644 --- a/apps/menus/time_menu.c +++ b/apps/menus/time_menu.c | |||
@@ -265,7 +265,7 @@ int time_screen(void* ignored) | |||
265 | /* force time to be drawn centered */ | 265 | /* force time to be drawn centered */ |
266 | clock_vps[i].flags |= VP_FLAG_ALIGN_CENTER; | 266 | clock_vps[i].flags |= VP_FLAG_ALIGN_CENTER; |
267 | 267 | ||
268 | font_h = clock_vps[i].line_height ?: (int)font_get(clock_vps[i].font)->height; | 268 | font_h = font_get(clock_vps[i].font)->height; |
269 | nb_lines -= 2; /* at least 2 lines for menu */ | 269 | nb_lines -= 2; /* at least 2 lines for menu */ |
270 | if (nb_lines > 4) | 270 | if (nb_lines > 4) |
271 | nb_lines = 4; | 271 | nb_lines = 4; |