summaryrefslogtreecommitdiff
path: root/apps/gui/backdrop.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/backdrop.h')
-rw-r--r--apps/gui/backdrop.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/gui/backdrop.h b/apps/gui/backdrop.h
index 3b873fd137..735a884606 100644
--- a/apps/gui/backdrop.h
+++ b/apps/gui/backdrop.h
@@ -22,29 +22,29 @@
22#ifndef _BACKDROP_H 22#ifndef _BACKDROP_H
23#define _BACKDROP_H 23#define _BACKDROP_H
24 24
25enum backdrop_type {
26 BACKDROP_MAIN,
27 BACKDROP_SKIN_WPS,
28};
29
30#if LCD_DEPTH > 1 && !defined(__PCTOOL__) 25#if LCD_DEPTH > 1 && !defined(__PCTOOL__)
31 26
32#include "lcd.h" 27#include "lcd.h"
33#include "bmp.h" 28#include "bmp.h"
34 29
35bool backdrop_load(enum backdrop_type bdrop, const char*); 30#define LCD_BACKDROP_BYTES (LCD_FBHEIGHT*LCD_FBWIDTH*sizeof(fb_data))
36void backdrop_unload(enum backdrop_type bdrop); 31#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
37void backdrop_show(enum backdrop_type bdrop); 32#define REMOTE_LCD_BACKDROP_BYTES \
38void backdrop_hide(void); 33 (LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data))
34#else
35#define REMOTE_LCD_BACKDROP_BYTES 0
36#endif
37
38bool backdrop_load(const char *filename, char* backdrop_buffer);
39void backdrop_show(char* backdrop_buffer);
39 40
41#else
42#define LCD_BACKDROP_BYTES 0
40#endif 43#endif
41 44
42#if defined(HAVE_REMOTE_LCD) 45#if defined(HAVE_REMOTE_LCD)
43/* no main backdrop, stubs! */ 46bool remote_backdrop_load(const char *filename, char* backdrop_buffer);
44bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename); 47void remote_backdrop_show(char* backdrop_buffer);
45void remote_backdrop_unload(enum backdrop_type bdrop);
46void remote_backdrop_show(enum backdrop_type bdrop);
47void remote_backdrop_hide(void);
48#endif 48#endif
49 49
50#endif /* _BACKDROP_H */ 50#endif /* _BACKDROP_H */