summaryrefslogtreecommitdiff
path: root/apps/screensavers_menu.c
diff options
context:
space:
mode:
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