summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/list.c37
1 files changed, 20 insertions, 17 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 286e6f9e59..94915391ee 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -886,29 +886,32 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists,
886 * on the screen for which the user pressed the key since for example, remote 886 * on the screen for which the user pressed the key since for example, remote
887 * and main screen doesn't have the same number of lines */ 887 * and main screen doesn't have the same number of lines */
888 case ACTION_LISTTREE_PGUP: 888 case ACTION_LISTTREE_PGUP:
889 gui_synclist_select_previous_page(lists, SCREEN_MAIN); 889 {
890 int screen =
891#if BUTTON_REMOTE
892 get_action_statuscode(NULL)&ACTION_REMOTE ?
893 SCREEN_REMOTE :
894#endif
895 SCREEN_MAIN;
896 gui_synclist_select_previous_page(lists, screen);
890 gui_synclist_draw(lists); 897 gui_synclist_draw(lists);
891 yield(); 898 yield();
899 }
892 return ACTION_STD_NEXT; 900 return ACTION_STD_NEXT;
893 901
894 case ACTION_LISTTREE_PGDOWN: 902 case ACTION_LISTTREE_PGDOWN:
895 gui_synclist_select_next_page(lists, SCREEN_MAIN); 903 {
896 gui_synclist_draw(lists); 904 int screen =
897 yield(); 905#if BUTTON_REMOTE
898 return ACTION_STD_PREV; 906 get_action_statuscode(NULL)&ACTION_REMOTE ?
899#ifdef REMOTE_BUTTON 907 SCREEN_REMOTE :
900 case ACTION_LISTTREE_RC_PGUP: 908#endif
901 gui_synclist_select_previous_page(lists, SCREEN_REMOTE); 909 SCREEN_MAIN;
902 gui_synclist_draw(lists); 910 gui_synclist_select_next_page(lists, screen);
903 yield();
904 return ACTION_STD_NEXT;
905
906 case ACTION_LISTTREE_RC_PGDOWN:
907 gui_synclist_select_next_page(lists, SCREEN_REMOTE);
908 gui_synclist_draw(lists); 911 gui_synclist_draw(lists);
909 yield(); 912 yield();
910 return ACTION_STD_PREV; 913 }
911#endif 914 return ACTION_STD_PREV;
912 } 915 }
913 return 0; 916 return 0;
914} 917}