summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r--apps/gui/skin_engine/skin_parser.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 1557783a7c..d207a1fb3e 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -246,10 +246,12 @@ static int parse_statusbar_tags(struct skin_element* element,
246 viewport_set_fullscreen(&default_vp->vp, curr_screen); 246 viewport_set_fullscreen(&default_vp->vp, curr_screen);
247 } 247 }
248#ifdef HAVE_REMOTE_LCD 248#ifdef HAVE_REMOTE_LCD
249 /* viewport_set_defaults() sets the font to FONT_UI+curr_screen. 249 /* This parser requires viewports which will use the settings font to
250 * This parser requires font 1 to always be the UI font, 250 * have font == 1, but the above viewport_set() calls set font to
251 * so force it back to FONT_UI and handle the screen number at the end */ 251 * the current real font id. So force 1 here it will be set correctly
252 default_vp->vp.font = FONT_UI; 252 * at the end
253 */
254 default_vp->vp.font = 1;
253#endif 255#endif
254 } 256 }
255 return 0; 257 return 0;
@@ -1645,7 +1647,7 @@ static bool skin_load_fonts(struct wps_data *data)
1645 font_id = skin_vp->parsed_fontid; 1647 font_id = skin_vp->parsed_fontid;
1646 if (font_id == 1) 1648 if (font_id == 1)
1647 { /* the usual case -> built-in fonts */ 1649 { /* the usual case -> built-in fonts */
1648 vp->font = global_status.font_id[curr_screen]; 1650 vp->font = screens[curr_screen].getuifont();
1649 continue; 1651 continue;
1650 } 1652 }
1651 else if (font_id <= 0) 1653 else if (font_id <= 0)