mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
[bugfix] FS#13709 - Mpegplayer conflicts with additional fonts in the theme
FONT_UI is a placeholder when it gets assigned it isn't resolved immediately when its time to resolve the font it is processed with font_get(int font) first it sets it to the last slot and then decrements till it gets a valid font I think this is intended to allow the largest chance of getting a loaded font instead if global_status->font_id has been set use that similar to how the screen helper does Change-Id: If97e504466265fafecbe07b7b72adb4808b67e6a
This commit is contained in:
parent
add06955a2
commit
86f5665cd0
1 changed files with 6 additions and 0 deletions
|
|
@ -763,6 +763,12 @@ static void draw_scrollbar_draw_rect(const struct vo_rect *rc, int min,
|
|||
|
||||
static void draw_setfont(int font)
|
||||
{
|
||||
if (font == FONT_UI)
|
||||
{
|
||||
int uifont = rb->global_status->font_id[SCREEN_MAIN];
|
||||
if (uifont != FONT_SYSFIXED)
|
||||
font = uifont;
|
||||
}
|
||||
osd.font = font;
|
||||
mylcd_setfont(font);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue