summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-29 14:42:03 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-29 14:42:03 +0000
commite454a3985275819d998b84bc0cf7b7b8ad9eab00 (patch)
treebae381c959526bd90df6a4675f7c3314950e8c14 /apps/menu.c
parent5226a89cce46e53d3c011de1e7b1c1d7b91af734 (diff)
downloadrockbox-e454a3985275819d998b84bc0cf7b7b8ad9eab00.tar.gz
rockbox-e454a3985275819d998b84bc0cf7b7b8ad9eab00.tar.bz2
rockbox-e454a3985275819d998b84bc0cf7b7b8ad9eab00.zip
Quickscreen: 4th item
This adds a 4th top item to the quickscreen. It's as configurable as the existing three items. This patch goes along with optimisations for small screens for better displaying of all four items. 14px font is very usable on a 64px height display for example. Left and Top items go through the items in the opposite direction, so that you can mirror a setting and toggle through it in both directions. Default item is party mode, as it's target independant. Flyspray: FS#9706 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22532 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/menu.c b/apps/menu.c
index b442d4423d..1c2df9294c 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -455,6 +455,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
MENUITEM_STRINGLIST(quickscreen_able_option,
ID2P(LANG_ONPLAY_MENU_TITLE), NULL,
ID2P(LANG_RESET_SETTING),
+ ID2P(LANG_TOP_QS_ITEM),
ID2P(LANG_LEFT_QS_ITEM),
ID2P(LANG_BOTTOM_QS_ITEM),
ID2P(LANG_RIGHT_QS_ITEM));
@@ -481,13 +482,16 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
break;
#ifdef HAVE_QUICKSCREEN
break;
- case 1: /* set as left QS item */
+ case 1: /* set as top QS item */
+ set_as_qs_item(setting, QUICKSCREEN_TOP);
+ break;
+ case 2: /* set as left QS item */
set_as_qs_item(setting, QUICKSCREEN_LEFT);
break;
- case 2: /* set as bottom QS item */
+ case 3: /* set as bottom QS item */
set_as_qs_item(setting, QUICKSCREEN_BOTTOM);
break;
- case 3: /* set as right QS item */
+ case 4: /* set as right QS item */
set_as_qs_item(setting, QUICKSCREEN_RIGHT);
break;
#endif