summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-11-07 17:30:36 +0100
committerChristian Soffke <christian.soffke@gmail.com>2024-11-07 17:45:09 +0100
commit0386469794a34034b39f1b764edb4fffc2ff16a0 (patch)
tree1e0e157bb738c535bb1ee4f09af55f5a4396ab79
parentee365f21c45f80a1509f2642decd9a10271164e1 (diff)
downloadrockbox-0386469794.tar.gz
rockbox-0386469794.zip
Fix incorrect UI font id in some plugins
see commit f19f3ef Change-Id: I417929eaa9303d439725fb4f0c20d104de54f8b0
-rw-r--r--apps/plugins/lib/simple_viewer.c2
-rw-r--r--apps/plugins/periodic_table.c2
-rw-r--r--apps/plugins/tagcache/tagcache.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lib/simple_viewer.c b/apps/plugins/lib/simple_viewer.c
index 0b554e054d..d5cf79d5e1 100644
--- a/apps/plugins/lib/simple_viewer.c
+++ b/apps/plugins/lib/simple_viewer.c
@@ -138,7 +138,7 @@ static int init_view(struct view_info *info,
const char *title, const char *text)
{
rb->viewport_set_defaults(&info->vp, SCREEN_MAIN);
- info->pf = rb->font_get(FONT_UI);
+ info->pf = rb->font_get(rb->screens[SCREEN_MAIN]->getuifont());
info->display_lines = info->vp.height / info->pf->height;
info->title = title;
diff --git a/apps/plugins/periodic_table.c b/apps/plugins/periodic_table.c
index 2dd84baacd..23c94e2edd 100644
--- a/apps/plugins/periodic_table.c
+++ b/apps/plugins/periodic_table.c
@@ -605,7 +605,7 @@ enum plugin_status plugin_start(const void* parameter)
theme_bg=rb->lcd_get_background();
#endif
- struct font *pf = rb->font_get(FONT_UI);
+ struct font *pf = rb->font_get(rb->screens[SCREEN_MAIN]->getuifont());
font_height = pf->height;
while (1) {
diff --git a/apps/plugins/tagcache/tagcache.c b/apps/plugins/tagcache/tagcache.c
index 23651a4471..87d2aa4c10 100644
--- a/apps/plugins/tagcache/tagcache.c
+++ b/apps/plugins/tagcache/tagcache.c
@@ -157,7 +157,7 @@ bool user_check_tag(int index_type, char* build_idx_buf)
{
static struct font *pf = NULL;
if (!pf)
- pf = rb->font_get(FONT_UI);
+ pf = rb->font_get(rb->screens[SCREEN_MAIN]->getuifont());
if (index_type == tag_artist || index_type == tag_album ||
index_type == tag_genre || index_type == tag_title ||