1
0
Fork 0
forked from len0rd/rockbox

Fix incorrect UI font id in some plugins

see commit f19f3ef

Change-Id: I417929eaa9303d439725fb4f0c20d104de54f8b0
This commit is contained in:
Christian Soffke 2024-11-07 17:30:36 +01:00
parent ee365f21c4
commit 0386469794
3 changed files with 3 additions and 3 deletions

View file

@ -138,7 +138,7 @@ static int init_view(struct view_info *info,
const char *title, const char *text) const char *title, const char *text)
{ {
rb->viewport_set_defaults(&info->vp, SCREEN_MAIN); 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->display_lines = info->vp.height / info->pf->height;
info->title = title; info->title = title;

View file

@ -605,7 +605,7 @@ enum plugin_status plugin_start(const void* parameter)
theme_bg=rb->lcd_get_background(); theme_bg=rb->lcd_get_background();
#endif #endif
struct font *pf = rb->font_get(FONT_UI); struct font *pf = rb->font_get(rb->screens[SCREEN_MAIN]->getuifont());
font_height = pf->height; font_height = pf->height;
while (1) { while (1) {

View file

@ -157,7 +157,7 @@ bool user_check_tag(int index_type, char* build_idx_buf)
{ {
static struct font *pf = NULL; static struct font *pf = NULL;
if (!pf) 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 || if (index_type == tag_artist || index_type == tag_album ||
index_type == tag_genre || index_type == tag_title || index_type == tag_genre || index_type == tag_title ||