summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_action.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-10-06 12:35:37 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-10-06 12:35:37 +0000
commit53a936ab833ea3cfd460d4713f45a8ab98e6620a (patch)
treee46f4cdea3b31eb355b60ba97969894c9c3f5314 /apps/plugins/text_viewer/tv_action.c
parent90e8815673bc949c3ef1dbf8904b50c8dfd023f6 (diff)
downloadrockbox-53a936ab833ea3cfd460d4713f45a8ab98e6620a.tar.gz
rockbox-53a936ab833ea3cfd460d4713f45a8ab98e6620a.zip
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
Diffstat (limited to 'apps/plugins/text_viewer/tv_action.c')
-rw-r--r--apps/plugins/text_viewer/tv_action.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/plugins/text_viewer/tv_action.c b/apps/plugins/text_viewer/tv_action.c
index 1e5473b438..54cec38f72 100644
--- a/apps/plugins/text_viewer/tv_action.c
+++ b/apps/plugins/text_viewer/tv_action.c
@@ -174,8 +174,6 @@ unsigned tv_menu(void)
174 if (res == TV_MENU_RESULT_EXIT_MENU) 174 if (res == TV_MENU_RESULT_EXIT_MENU)
175 { 175 {
176 tv_convert_fpos(cur_file_pos, &cur_pos); 176 tv_convert_fpos(cur_file_pos, &cur_pos);
177 if (preferences->vertical_scroll_mode == VS_PAGE)
178 cur_pos.line = 0;
179 177
180 tv_move_screen(cur_pos.page, cur_pos.line, SEEK_SET); 178 tv_move_screen(cur_pos.page, cur_pos.line, SEEK_SET);
181 } 179 }