1
0
Fork 0
forked from len0rd/rockbox

text viewer: can be selected the number of screens per page.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26613 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Yoshihisa Uchida 2010-06-06 08:44:27 +00:00
parent e1a0e2cd7a
commit 1445c3b8c5
8 changed files with 84 additions and 87 deletions

View file

@ -108,12 +108,12 @@ enum plugin_status plugin_start(const void* file)
case TV_SCREEN_LEFT:
case TV_SCREEN_LEFT | BUTTON_REPEAT:
if (prefs->view_mode == WIDE)
if (prefs->windows > 1)
{
/* Screen left */
tv_scroll_left(TV_HORIZONTAL_SCROLL_WINDOW);
}
else { /* prefs->view_mode == NARROW */
else { /* prefs->windows == 1 */
/* scroll to previous page */
tv_scroll_up(TV_VERTICAL_SCROLL_PAGE);
#if 0
@ -125,12 +125,12 @@ enum plugin_status plugin_start(const void* file)
case TV_SCREEN_RIGHT:
case TV_SCREEN_RIGHT | BUTTON_REPEAT:
if (prefs->view_mode == WIDE)
if (prefs->windows > 1)
{
/* Screen right */
tv_scroll_right(TV_HORIZONTAL_SCROLL_WINDOW);
}
else { /* prefs->view_mode == NARROW */
else { /* prefs->windows == 1 */
/* scroll to next page */
tv_scroll_down(TV_VERTICAL_SCROLL_PAGE);
#if 0