summaryrefslogtreecommitdiff
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.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,
455 MENUITEM_STRINGLIST(quickscreen_able_option, 455 MENUITEM_STRINGLIST(quickscreen_able_option,
456 ID2P(LANG_ONPLAY_MENU_TITLE), NULL, 456 ID2P(LANG_ONPLAY_MENU_TITLE), NULL,
457 ID2P(LANG_RESET_SETTING), 457 ID2P(LANG_RESET_SETTING),
458 ID2P(LANG_TOP_QS_ITEM),
458 ID2P(LANG_LEFT_QS_ITEM), 459 ID2P(LANG_LEFT_QS_ITEM),
459 ID2P(LANG_BOTTOM_QS_ITEM), 460 ID2P(LANG_BOTTOM_QS_ITEM),
460 ID2P(LANG_RIGHT_QS_ITEM)); 461 ID2P(LANG_RIGHT_QS_ITEM));
@@ -481,13 +482,16 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
481 break; 482 break;
482#ifdef HAVE_QUICKSCREEN 483#ifdef HAVE_QUICKSCREEN
483 break; 484 break;
484 case 1: /* set as left QS item */ 485 case 1: /* set as top QS item */
486 set_as_qs_item(setting, QUICKSCREEN_TOP);
487 break;
488 case 2: /* set as left QS item */
485 set_as_qs_item(setting, QUICKSCREEN_LEFT); 489 set_as_qs_item(setting, QUICKSCREEN_LEFT);
486 break; 490 break;
487 case 2: /* set as bottom QS item */ 491 case 3: /* set as bottom QS item */
488 set_as_qs_item(setting, QUICKSCREEN_BOTTOM); 492 set_as_qs_item(setting, QUICKSCREEN_BOTTOM);
489 break; 493 break;
490 case 3: /* set as right QS item */ 494 case 4: /* set as right QS item */
491 set_as_qs_item(setting, QUICKSCREEN_RIGHT); 495 set_as_qs_item(setting, QUICKSCREEN_RIGHT);
492 break; 496 break;
493#endif 497#endif