summaryrefslogtreecommitdiff
path: root/apps/menus/time_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/time_menu.c')
-rw-r--r--apps/menus/time_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c
index c4fe49aa49..9be335c8ee 100644
--- a/apps/menus/time_menu.c
+++ b/apps/menus/time_menu.c
@@ -269,7 +269,7 @@ int time_screen(void* ignored)
269 /* force time to be drawn centered */ 269 /* force time to be drawn centered */
270 clock_vps[i].flags |= VP_FLAG_ALIGN_CENTER; 270 clock_vps[i].flags |= VP_FLAG_ALIGN_CENTER;
271 271
272 font_h = clock_vps[i].line_height; 272 font_h = clock_vps[i].line_height ?: (int)font_get(clock_vps[i].font)->height;
273 nb_lines -= 2; /* at least 2 lines for menu */ 273 nb_lines -= 2; /* at least 2 lines for menu */
274 if (nb_lines > 4) 274 if (nb_lines > 4)
275 nb_lines = 4; 275 nb_lines = 4;