2002-06-24 08:51:28 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2002-06-24 08:57:59 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2002-06-24 08:51:28 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2002-08-31 20:57:53 +00:00
|
|
|
#ifdef USE_SCREENSAVERS
|
2002-06-24 08:51:28 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "lcd.h"
|
|
|
|
#include "menu.h"
|
|
|
|
#include "screensavers_menu.h"
|
|
|
|
#include "button.h"
|
|
|
|
#include "kernel.h"
|
|
|
|
#include "sprintf.h"
|
|
|
|
|
|
|
|
#include "boxes.h"
|
2002-08-23 12:32:52 +00:00
|
|
|
extern Menu bounce(void);
|
|
|
|
extern Menu blank(void);
|
2002-06-24 08:51:28 +00:00
|
|
|
|
2002-08-23 12:32:52 +00:00
|
|
|
Menu screensavers_menu(void)
|
2002-06-24 08:51:28 +00:00
|
|
|
{
|
|
|
|
int m;
|
2002-08-23 12:32:52 +00:00
|
|
|
Menu result;
|
2002-06-24 08:51:28 +00:00
|
|
|
|
|
|
|
struct menu_items items[] = {
|
2002-06-27 01:08:11 +00:00
|
|
|
{ "Boxes", boxes },
|
|
|
|
{ "Bounce", bounce },
|
2002-08-11 12:02:15 +00:00
|
|
|
{ "Blank", blank },
|
2002-06-24 08:51:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
m=menu_init( items, sizeof items / sizeof(struct menu_items) );
|
2002-08-23 12:32:52 +00:00
|
|
|
result = menu_run(m);
|
2002-06-24 08:51:28 +00:00
|
|
|
menu_exit(m);
|
2002-08-23 12:32:52 +00:00
|
|
|
|
|
|
|
return result;
|
2002-06-24 08:51:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2002-08-31 20:57:53 +00:00
|
|
|
#endif
|