From 3827d4764b306f70a955dd39c9e96dd2c29debc8 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Mon, 24 Jun 2002 08:51:28 +0000 Subject: games and screensavers are now in submenus git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1142 a1c6a512-1295-4272-9138-f99709370657 --- apps/screensavers_menu.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 apps/screensavers_menu.c (limited to 'apps/screensavers_menu.c') 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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2002 Robert Hak + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifdef HAVE_LCD_BITMAP + +#include "config.h" +#include +#include +#include "lcd.h" +#include "menu.h" +#include "screensavers_menu.h" +#include "button.h" +#include "kernel.h" +#include "sprintf.h" + +#include "boxes.h" +extern void bounce(void); + +enum { Boxes, Bounce, numsavers }; + +void screensavers_menu(void) +{ + int m; + + struct menu_items items[] = { + { Boxes, "Boxes", boxes }, + { Bounce, "Bounce", bounce }, + }; + + m=menu_init( items, sizeof items / sizeof(struct menu_items) ); + menu_run(m); + menu_exit(m); +} + +#endif + + -- cgit v1.2.3