summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/text_viewer.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-06-09 11:28:43 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-06-09 11:28:43 +0000
commit8bdb1c04d3ea9fd6460506ca05de506416e1d750 (patch)
treed5031f2c14d0d7d5866c2a3c9c3b5717b612a8bc /apps/plugins/text_viewer/text_viewer.c
parentc92b2cc16a8324b71e874e96cc828589b9f586fd (diff)
downloadrockbox-8bdb1c04d3ea9fd6460506ca05de506416e1d750.tar.gz
rockbox-8bdb1c04d3ea9fd6460506ca05de506416e1d750.zip
text viewer: can select "move to prev/next page" or "move to top page/bottom page" when LEFT/RIGHT key is pressed (narrow mode).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26719 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/text_viewer.c')
-rw-r--r--apps/plugins/text_viewer/text_viewer.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/apps/plugins/text_viewer/text_viewer.c b/apps/plugins/text_viewer/text_viewer.c
index ea8972491b..fae2f071aa 100644
--- a/apps/plugins/text_viewer/text_viewer.c
+++ b/apps/plugins/text_viewer/text_viewer.c
@@ -114,12 +114,16 @@ enum plugin_status plugin_start(const void* file)
114 tv_scroll_left(TV_HORIZONTAL_SCROLL_PREFS); 114 tv_scroll_left(TV_HORIZONTAL_SCROLL_PREFS);
115 } 115 }
116 else { /* prefs->windows == 1 */ 116 else { /* prefs->windows == 1 */
117 /* scroll to previous page */ 117 if (prefs->narrow_mode == NM_PAGE)
118 tv_scroll_up(TV_VERTICAL_SCROLL_PAGE); 118 {
119#if 0 119 /* scroll to previous page */
120 /* Top of file */ 120 tv_scroll_up(TV_VERTICAL_SCROLL_PAGE);
121 tv_top(); 121 }
122#endif 122 else
123 {
124 /* Top of file */
125 tv_top();
126 }
123 } 127 }
124 break; 128 break;
125 129
@@ -131,12 +135,16 @@ enum plugin_status plugin_start(const void* file)
131 tv_scroll_right(TV_HORIZONTAL_SCROLL_PREFS); 135 tv_scroll_right(TV_HORIZONTAL_SCROLL_PREFS);
132 } 136 }
133 else { /* prefs->windows == 1 */ 137 else { /* prefs->windows == 1 */
134 /* scroll to next page */ 138 if (prefs->narrow_mode == NM_PAGE)
135 tv_scroll_down(TV_VERTICAL_SCROLL_PAGE); 139 {
136#if 0 140 /* scroll to next page */
137 /* Bottom of file */ 141 tv_scroll_down(TV_VERTICAL_SCROLL_PAGE);
138 tv_bottom(); 142 }
139#endif 143 else
144 {
145 /* Bottom of file */
146 tv_bottom();
147 }
140 } 148 }
141 break; 149 break;
142 150