forked from len0rd/rockbox
Better fix for FS#12337. Use 0 to make the line height calculated from the font height, as before r30773.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30850 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9fe029b12a
commit
93c6c79e8d
5 changed files with 6 additions and 5 deletions
|
|
@ -269,7 +269,7 @@ int time_screen(void* ignored)
|
|||
/* force time to be drawn centered */
|
||||
clock_vps[i].flags |= VP_FLAG_ALIGN_CENTER;
|
||||
|
||||
font_h = clock_vps[i].line_height;
|
||||
font_h = clock_vps[i].line_height ?: (int)font_get(clock_vps[i].font)->height;
|
||||
nb_lines -= 2; /* at least 2 lines for menu */
|
||||
if (nb_lines > 4)
|
||||
nb_lines = 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue