Text viewer: Fix FS#11190 - Text Viewer shows no Text when skipping to last page
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25612 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
305dd65650
commit
1a94554fd7
1 changed files with 5 additions and 0 deletions
|
@ -1268,6 +1268,11 @@ static void viewer_scroll_down(bool autoscroll)
|
|||
|
||||
if (prefs.scroll_mode == LINE || autoscroll)
|
||||
increment_current_line();
|
||||
cline++;
|
||||
if (cline > display_lines) {
|
||||
cline = 1;
|
||||
cpage++;
|
||||
}
|
||||
}
|
||||
|
||||
static void viewer_scroll_to_top_line(void)
|
||||
|
|
Loading…
Reference in a new issue