forked from len0rd/rockbox
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();
|
||||
count = radio_preset_count();
|
||||
start_item = cur_pos + viewer->start_offset;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
cur_pos = playlist_get_display_index();
|
||||
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);
|
||||
for(i=start_item; (i-start_item)<lines && i<count; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue