1
0
Fork 0
forked from len0rd/rockbox

fix the problem that does not jump to selected the bookmark. (FS#11386)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26738 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Yoshihisa Uchida 2010-06-10 10:57:05 +00:00
parent c3a698e46a
commit ac25812e55
3 changed files with 12 additions and 4 deletions

View file

@ -173,11 +173,16 @@ enum tv_menu_result tv_menu(void)
res = tv_display_menu();
tv_convert_fpos(cur_file_pos, &cur_pos);
if (prefs->vertical_scroll_mode == PAGE)
cur_pos.line = 0;
if (res == TV_MENU_RESULT_EXIT_MENU)
{
tv_convert_fpos(cur_file_pos, &cur_pos);
if (prefs->vertical_scroll_mode == PAGE)
cur_pos.line = 0;
tv_move_screen(cur_pos.page, cur_pos.line, SEEK_SET);
tv_move_screen(cur_pos.page, cur_pos.line, SEEK_SET);
}
else if (res == TV_MENU_RESULT_MOVE_PAGE)
res = TV_MENU_RESULT_EXIT_MENU;
return res;
}