mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
fix a minor fms presetlist viewer bug with displaying prev when you are on the first playlist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26087 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36e7c37750
commit
caa4f54e42
1 changed files with 3 additions and 2 deletions
|
|
@ -219,14 +219,15 @@ static void draw_playlist_viewer_list(struct gui_wps *gwps,
|
||||||
{
|
{
|
||||||
cur_pos = radio_current_preset();
|
cur_pos = radio_current_preset();
|
||||||
count = radio_preset_count();
|
count = radio_preset_count();
|
||||||
|
start_item = cur_pos + viewer->start_offset;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
cur_pos = playlist_get_display_index();
|
cur_pos = playlist_get_display_index();
|
||||||
count = playlist_amount()+1;
|
count = playlist_amount()+1;
|
||||||
}
|
|
||||||
start_item = MAX(0, cur_pos + viewer->start_offset);
|
start_item = MAX(0, cur_pos + viewer->start_offset);
|
||||||
|
}
|
||||||
|
|
||||||
gwps->display->set_viewport(viewer->vp);
|
gwps->display->set_viewport(viewer->vp);
|
||||||
for(i=start_item; (i-start_item)<lines && i<count; i++)
|
for(i=start_item; (i-start_item)<lines && i<count; i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue