plugins: lrcplayer: fix non-UI font info vp w/ SBS enabled

With the statusbar enabled, the UI viewport's
font may be different from the UI font, which
breaks stringsize calculations in LRC Player
that are currently all based on the UI font.

Change-Id: Ib53de62134b250fa50353074959843278f38478f
This commit is contained in:
Christian Soffke 2026-02-21 14:34:45 +01:00
parent 59cc0282ec
commit a70436fe8e

View file

@ -2691,6 +2691,7 @@ static int lrc_main(void)
FOR_NB_SCREENS(i)
{
rb->viewportmanager_theme_enable(i, prefs.statusbar_on, &vp_info[i]);
vp_info[i].font = uifont;
vp_lyrics[i] = vp_info[i];
vp_lyrics[i].flags &= ~VP_FLAG_ALIGNMENT_MASK;
vp_lyrics[i].y += h;