diff options
author | Tom Ross <midgey@rockbox.org> | 2007-04-03 20:10:40 +0000 |
---|---|---|
committer | Tom Ross <midgey@rockbox.org> | 2007-04-03 20:10:40 +0000 |
commit | f4c6560ea7778cbc1ba0ea14e5fd6b4964225a85 (patch) | |
tree | 8be95731668f83fdee376b14cdc2ae00322afac7 /apps | |
parent | 8f872e8ac5b2eb2714c1aad3a37133b1665e0c58 (diff) |
Adjust Wormlet to use the new macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13010 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/wormlet.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index dce4931de6..3147134bca 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c @@ -2525,27 +2525,16 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { "Out of Control", -1 } }; - static const struct menu_item items[] = { - { "Play Wormlet!", NULL }, - { "Number of Worms", NULL }, - { "Number of Players", NULL }, - { "Control Style", NULL }, - { "Worm Growth Per Food", NULL }, - { "Worm Speed", NULL }, - { "Arghs Per Food", NULL }, - { "Argh Size", NULL }, - { "Food Size", NULL }, - { "Revert to Default Settings", NULL }, - { "Quit", NULL } - }; - - m = rb->menu_init(items, sizeof(items) / sizeof(*items), - NULL, NULL, NULL, NULL); + MENUITEM_STRINGLIST(menu, "Wormlet Menu", NULL, "Play Wormlet!", + "Number of Worms", "Number of Players", "Control Style", + "Worm Growth Per Food","Worm Speed","Arghs Per Food", + "Argh Size","Food Size","Revert to Default Settings", + "Quit"); rb->button_clear_queue(); while (!menu_quit) { - result = rb->menu_show(m); + result = rb->do_menu(&menu, &result); switch(result) { |