Compare commits

..

2 commits

Author SHA1 Message Date
Christian Soffke
ac3999d5ab plugins: stopwatch: fix missing or wrong SBS title
Change-Id: Iecdb7a3a142ee3754f25d374e71dae62dc4d5a17
2026-02-21 12:34:41 -05:00
Christian Soffke
a70436fe8e 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
2026-02-21 14:34:45 +01:00
2 changed files with 4 additions and 0 deletions

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;

View file

@ -461,7 +461,10 @@ enum plugin_status plugin_start(const void* parameter)
int h;
FOR_NB_SCREENS(i)
{
rb->sb_set_persistent_title("Stopwatch", Icon_NOICON, i);
rb->viewportmanager_theme_enable(i, true, NULL);
}
rb->viewport_set_defaults(&vp, SCREEN_MAIN);
display = rb->screens[SCREEN_MAIN];