mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 11:32:41 -05:00
text viewer:
-remove 1px gap at the top and bottom of the screen to maximize the draw erea, especially for small screens. -fix trashes on the vertical scrollbar when scrolled the column left/right. -fix bug that vertical scrllbar sometimes goes up while scrolling down. -don't chage displayed line after closing menu. -use simplelist to select bookmark to make it work better. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28213 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
90e8815673
commit
53a936ab83
6 changed files with 71 additions and 66 deletions
|
|
@ -220,7 +220,7 @@ void tv_convert_fpos(off_t fpos, struct tv_screen_pos *pos)
|
|||
while (tv_create_line_positions() && cur_pos.file_pos < fpos)
|
||||
rb->splashf(0, "converting %ld%%...", 100 * cur_pos.file_pos / fpos);
|
||||
|
||||
if (cur_pos.page < max_page)
|
||||
if (i < max_page)
|
||||
cur_pos.page--;
|
||||
tv_seek_page(cur_pos.page, SEEK_SET);
|
||||
for (i = 0; i < lines_per_page; i++)
|
||||
|
|
@ -296,6 +296,8 @@ void tv_move_screen(int page_offset, int line_offset, int whence)
|
|||
if (cur_pos.page < max_page && new_pos.line == lines_per_page)
|
||||
{
|
||||
tv_seek(line_pos[lines_per_page], SEEK_CUR);
|
||||
cur_pos.file_pos += line_pos[lines_per_page];
|
||||
|
||||
for (i = 0; i < parse_lines; i++)
|
||||
line_pos[i] = line_pos[i + lines_per_page] - line_pos[lines_per_page];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue