Patch #4843 by Nicolas Pennequin - Correct status bar and backdrop in ID3 info screen

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9156 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2006-03-21 11:31:53 +00:00
parent 7c7c03a2b9
commit ab1019a1e8
3 changed files with 15 additions and 1 deletions

View file

@ -709,7 +709,20 @@ long gui_wps_show(void)
#ifdef WPS_ID3
case WPS_ID3:
#ifdef HAVE_LCD_COLOR
lcd_set_backdrop(gui_wps[SCREEN_MAIN].data->old_backdrop);
#endif
browse_id3();
#ifdef HAVE_LCD_COLOR
if (gui_wps[SCREEN_MAIN].data->has_backdrop)
lcd_set_backdrop(&wps_backdrop[0][0]);
#endif
#ifdef HAVE_LCD_BITMAP
FOR_NB_SCREENS(i)
{
gui_wps_set_margin(&gui_wps[i]);
}
#endif
restore = true;
break;
#endif

View file

@ -983,7 +983,7 @@ bool browse_id3(void)
char buf[64];
const struct mp3entry* id3 = audio_current_track();
#if defined(HAVE_LCD_BITMAP)
const int y_margin = lcd_getymargin();
const int y_margin = global_settings.statusbar ? STATUSBAR_HEIGHT : 0;
const int line_height = font_get(FONT_UI)->height;
const int rows = (LCD_HEIGHT - y_margin) / line_height;
const bool show_scrollbar = global_settings.scrollbar

View file

@ -184,3 +184,4 @@ Matthias Mohr
Christian Marg
Eli Sherer
Fredrik Öhrn
Nicolas Pennequin