FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / apps / gui / backdrop.h
blob9281cc404556e4d3e8bf2d19489f6c5c8315efde
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 */
41 static inline
42 bool backdrop_load(enum backdrop_type bdrop, const char* filename)
44 (void)filename; (void)bdrop; return true;
47 static inline void backdrop_unload(enum backdrop_type bdrop)
49 (void)bdrop;
51 static inline void backdrop_show(enum backdrop_type bdrop)
53 (void)bdrop;
56 #endif
58 #if defined(HAVE_REMOTE_LCD)
59 /* no main backdrop, stubs! */
60 #if LCD_REMOTE_DEPTH > 1
61 bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename);
62 void remote_backdrop_unload(enum backdrop_type bdrop);
63 void remote_backdrop_show(enum backdrop_type bdrop);
64 #else
65 static inline
66 bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename)
68 (void)filename; (void)bdrop; return true;
71 static inline void remote_backdrop_unload(enum backdrop_type bdrop)
73 (void)bdrop;
76 static inline void remote_backdrop_show(enum backdrop_type bdrop)
78 (void)bdrop;
80 #endif
81 #endif
83 #endif /* _BACKDROP_H */