2006-02-02 20:42:56 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Dave Chapman
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2006-02-02 20:42:56 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _BACKDROP_H
|
|
|
|
#define _BACKDROP_H
|
|
|
|
|
2009-08-06 00:14:40 +00:00
|
|
|
enum backdrop_type {
|
|
|
|
BACKDROP_MAIN,
|
|
|
|
BACKDROP_SKIN_WPS,
|
|
|
|
};
|
|
|
|
|
2006-11-13 00:45:21 +00:00
|
|
|
#if LCD_DEPTH > 1
|
2006-02-02 20:42:56 +00:00
|
|
|
|
|
|
|
#include "lcd.h"
|
|
|
|
#include "bmp.h"
|
|
|
|
|
2009-08-06 00:14:40 +00:00
|
|
|
bool backdrop_load(enum backdrop_type bdrop, const char*);
|
|
|
|
void backdrop_unload(enum backdrop_type bdrop);
|
|
|
|
void backdrop_show(enum backdrop_type bdrop);
|
|
|
|
|
|
|
|
#else /* LCD_DEPTH > 1 */
|
|
|
|
|
|
|
|
static inline
|
|
|
|
bool backdrop_load(enum backdrop_type bdrop, const char* filename)
|
|
|
|
{
|
|
|
|
(void)filename; (void)bdrop; return true;
|
|
|
|
}
|
2006-05-21 11:00:02 +00:00
|
|
|
|
2009-08-06 00:14:40 +00:00
|
|
|
static inline void backdrop_unload(enum backdrop_type bdrop)
|
|
|
|
{
|
|
|
|
(void)bdrop;
|
|
|
|
}
|
|
|
|
static inline void backdrop_show(enum backdrop_type bdrop)
|
|
|
|
{
|
|
|
|
(void)bdrop;
|
|
|
|
}
|
2006-05-21 11:00:02 +00:00
|
|
|
|
2009-08-06 00:14:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_REMOTE_LCD)
|
|
|
|
/* no main backdrop, stubs! */
|
|
|
|
#if LCD_REMOTE_DEPTH > 1
|
|
|
|
bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename);
|
|
|
|
void remote_backdropunload(enum backdrop_type bdrop);
|
|
|
|
void remote_backdrop_show(enum backdrop_type bdrop);
|
|
|
|
#else
|
|
|
|
static inline
|
|
|
|
bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename)
|
|
|
|
{
|
|
|
|
(void)filename; (void)bdrop; return true;
|
|
|
|
}
|
2006-02-02 20:42:56 +00:00
|
|
|
|
2009-08-06 00:14:40 +00:00
|
|
|
static inline void remote_backdrop_unload(enum backdrop_type bdrop)
|
|
|
|
{
|
|
|
|
(void)bdrop;
|
|
|
|
}
|
2006-02-02 20:42:56 +00:00
|
|
|
|
2009-08-06 00:14:40 +00:00
|
|
|
static inline void remote_backdrop_show(enum backdrop_type bdrop)
|
|
|
|
{
|
|
|
|
(void)bdrop;
|
|
|
|
}
|
|
|
|
#endif
|
2007-04-25 21:44:56 +00:00
|
|
|
#endif
|
|
|
|
|
2006-05-21 11:00:02 +00:00
|
|
|
#endif /* _BACKDROP_H */
|