summaryrefslogtreecommitdiff
path: root/apps/menus/display_menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-03-05 09:58:30 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-03-05 09:58:30 +0000
commit0e5cec2d187dbded9b3c36dbcfd1469d00fe47af (patch)
treeab02e321e04ebfb4fb2e0a5327b5443a10761176 /apps/menus/display_menu.c
parent8232e1a7c8d7cfaa16e3c8283fdb6d5a46aaf577 (diff)
downloadrockbox-0e5cec2d187dbded9b3c36dbcfd1469d00fe47af.tar.gz
rockbox-0e5cec2d187dbded9b3c36dbcfd1469d00fe47af.zip
FS#8457 - convert the list drawing code to use viewports. This does not include any of the customizability which was in the patch, so unless any bugs show up users should not notice any difference.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16527 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r--apps/menus/display_menu.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index a68defdfd4..c8d39c7395 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -297,8 +297,20 @@ MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON,
297/***********************************/ 297/***********************************/
298/* BARS MENU */ 298/* BARS MENU */
299#ifdef HAVE_LCD_BITMAP 299#ifdef HAVE_LCD_BITMAP
300int statusbar_callback(int action,const struct menu_item_ex *this_item)
301{
302 (void)this_item;
303 switch (action)
304 {
305 case ACTION_EXIT_MENUITEM:
306 /* this should be changed so only the viewports are reloaded */
307 settings_apply();
308 break;
309 }
310 return action;
311}
300MENUITEM_SETTING(scrollbar_item, &global_settings.scrollbar, NULL); 312MENUITEM_SETTING(scrollbar_item, &global_settings.scrollbar, NULL);
301MENUITEM_SETTING(statusbar, &global_settings.statusbar, NULL); 313MENUITEM_SETTING(statusbar, &global_settings.statusbar, statusbar_callback);
302#if CONFIG_KEYPAD == RECORDER_PAD 314#if CONFIG_KEYPAD == RECORDER_PAD
303MENUITEM_SETTING(buttonbar, &global_settings.buttonbar, NULL); 315MENUITEM_SETTING(buttonbar, &global_settings.buttonbar, NULL);
304#endif 316#endif