Don't define pitch_speed_enum() on MAS3507D. Fixes yellow
[kugel-rb.git] / apps / gui / backdrop.h
blobb37071b5d421c213b15dbb0755d72f534283139d
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Dave Chapman
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _BACKDROP_H
23 #define _BACKDROP_H
25 enum backdrop_type {
26 BACKDROP_MAIN,
27 BACKDROP_SKIN_WPS,
30 #if LCD_DEPTH > 1 && !defined(__PCTOOL__)
32 #include "lcd.h"
33 #include "bmp.h"
35 bool backdrop_load(enum backdrop_type bdrop, const char*);
36 void backdrop_unload(enum backdrop_type bdrop);
37 void backdrop_show(enum backdrop_type bdrop);
39 #else /* LCD_DEPTH <= 1 || __PCTOOL__ */
41 static inline bool backdrop_load(enum backdrop_type bdrop, const char* filename)
43 (void)filename; (void)bdrop; return true;
46 static inline void backdrop_unload(enum backdrop_type bdrop)
48 (void)bdrop;
50 static inline void backdrop_show(enum backdrop_type bdrop)
52 (void)bdrop;
55 #endif
57 #if defined(HAVE_REMOTE_LCD)
58 /* no main backdrop, stubs! */
59 #if LCD_REMOTE_DEPTH > 1
60 bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename);
61 void remote_backdrop_unload(enum backdrop_type bdrop);
62 void remote_backdrop_show(enum backdrop_type bdrop);
63 #else
64 static inline
65 bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename)
67 (void)filename; (void)bdrop; return true;
70 static inline void remote_backdrop_unload(enum backdrop_type bdrop)
72 (void)bdrop;
75 static inline void remote_backdrop_show(enum backdrop_type bdrop)
77 (void)bdrop;
79 #endif
80 #endif
82 #endif /* _BACKDROP_H */