mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix incorrect UI font id in some plugins
see commit f19f3ef
Change-Id: I417929eaa9303d439725fb4f0c20d104de54f8b0
This commit is contained in:
parent
ee365f21c4
commit
0386469794
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue