diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-29 07:52:13 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-29 07:52:13 +0000 |
commit | eee5423fe10f247f74d69404924edf3a0d54e8cd (patch) | |
tree | df46391368a2ad7930a926c59f53796229a933ab /apps/gui/backdrop.h | |
parent | e3e436e2b5519637981b2667f79c42b2e4ed110b (diff) | |
download | rockbox-eee5423fe10f247f74d69404924edf3a0d54e8cd.tar.gz rockbox-eee5423fe10f247f74d69404924edf3a0d54e8cd.zip |
skin rework (FS#10922) notable changes:
- simplify the setting/skin relationship. settings are used as the fallback if it's not specified in the skin
- backdrop buffers are now in the skin buffer (which has also increased slightly to accomodate 1 backdrop for each skin and 2 full colour screens for bmps (up for 1.5))
- if no %X is specified in a skin then the backdrop setting will be used. use %Xd to explicitly disable a skin from displaying a backdrop
- the base skin can now specify a backdrop.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24366 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/backdrop.h')
-rw-r--r-- | apps/gui/backdrop.h | 28 |
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 | ||
25 | enum 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 | ||
35 | bool backdrop_load(enum backdrop_type bdrop, const char*); | 30 | #define LCD_BACKDROP_BYTES (LCD_FBHEIGHT*LCD_FBWIDTH*sizeof(fb_data)) |
36 | void backdrop_unload(enum backdrop_type bdrop); | 31 | #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 |
37 | void backdrop_show(enum backdrop_type bdrop); | 32 | #define REMOTE_LCD_BACKDROP_BYTES \ |
38 | void 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 | |||
38 | bool backdrop_load(const char *filename, char* backdrop_buffer); | ||
39 | void 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! */ | 46 | bool remote_backdrop_load(const char *filename, char* backdrop_buffer); |
44 | bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename); | 47 | void remote_backdrop_show(char* backdrop_buffer); |
45 | void remote_backdrop_unload(enum backdrop_type bdrop); | ||
46 | void remote_backdrop_show(enum backdrop_type bdrop); | ||
47 | void remote_backdrop_hide(void); | ||
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #endif /* _BACKDROP_H */ | 50 | #endif /* _BACKDROP_H */ |