summaryrefslogtreecommitdiff
path: root/apps/screensavers_menu.c
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-06-24 08:51:28 +0000
committerRobert Hak <adiamas@rockbox.org>2002-06-24 08:51:28 +0000
commit3827d4764b306f70a955dd39c9e96dd2c29debc8 (patch)
treeafe3ddfe613dad2189294346b55abf99d3e1c315 /apps/screensavers_menu.c
parentbb5579e83824273cee9bb30fc220b62890937bce (diff)
downloadrockbox-3827d4764b306f70a955dd39c9e96dd2c29debc8.tar.gz
rockbox-3827d4764b306f70a955dd39c9e96dd2c29debc8.zip
games and screensavers are now in submenus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1142 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screensavers_menu.c')
-rw-r--r--apps/screensavers_menu.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/apps/screensavers_menu.c b/apps/screensavers_menu.c
new file mode 100644
index 0000000000..e7dc031e12
--- /dev/null
+++ b/apps/screensavers_menu.c
@@ -0,0 +1,52 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 Robert Hak
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#ifdef HAVE_LCD_BITMAP
20
21#include "config.h"
22#include <stdio.h>
23#include <stdbool.h>
24#include "lcd.h"
25#include "menu.h"
26#include "screensavers_menu.h"
27#include "button.h"
28#include "kernel.h"
29#include "sprintf.h"
30
31#include "boxes.h"
32extern void bounce(void);
33
34enum { Boxes, Bounce, numsavers };
35
36void screensavers_menu(void)
37{
38 int m;
39
40 struct menu_items items[] = {
41 { Boxes, "Boxes", boxes },
42 { Bounce, "Bounce", bounce },
43 };
44
45 m=menu_init( items, sizeof items / sizeof(struct menu_items) );
46 menu_run(m);
47 menu_exit(m);
48}
49
50#endif
51
52