plugins: lrcplayer: fix non-UI font info vp w/ SBS enabled
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit a70436fe8e5ac18d26a4fa5cc7d5693754784c47 Author: Christian Soffke <[email protected]> Date: Sat Feb 21 14:34:45 2026 +0100 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 diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c index c357ff1b57..f87d3aa7c2 100644 --- a/apps/plugins/lrcplayer.c +++ b/apps/plugins/lrcplayer.c @@ -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; -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs