diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-01-26 20:14:42 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-01-26 20:14:42 +0000 |
commit | 5629d551d710bd57a1cef129ce5a69b76cbbdd12 (patch) | |
tree | 1196849b9a02ebf39fa5d6c33df1db9334aeead2 /apps/gui/backdrop.h | |
parent | 7a73a9cd4e882ebbc37831160ec18d0f251f14bd (diff) | |
download | rockbox-5629d551d710bd57a1cef129ce5a69b76cbbdd12.tar.gz rockbox-5629d551d710bd57a1cef129ce5a69b76cbbdd12.zip |
Accept the last patch FS#10797 with a few changes by me (fixing side effects and adding the new backdrop_hide() to the multi screen api). It changes the hide_bars parameter to mean hide_theme.
This makes plugins show the menu backdrop in their backdrop so that they don't look like crap if you have an sbs and look more integrated. I've test about all plugins and all work fine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24335 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/backdrop.h')
-rw-r--r-- | apps/gui/backdrop.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/backdrop.h b/apps/gui/backdrop.h index b37071b5d4..4083464cee 100644 --- a/apps/gui/backdrop.h +++ b/apps/gui/backdrop.h | |||
@@ -35,6 +35,7 @@ enum backdrop_type { | |||
35 | bool backdrop_load(enum backdrop_type bdrop, const char*); | 35 | bool backdrop_load(enum backdrop_type bdrop, const char*); |
36 | void backdrop_unload(enum backdrop_type bdrop); | 36 | void backdrop_unload(enum backdrop_type bdrop); |
37 | void backdrop_show(enum backdrop_type bdrop); | 37 | void backdrop_show(enum backdrop_type bdrop); |
38 | void backdrop_hide(void); | ||
38 | 39 | ||
39 | #else /* LCD_DEPTH <= 1 || __PCTOOL__ */ | 40 | #else /* LCD_DEPTH <= 1 || __PCTOOL__ */ |
40 | 41 | ||
@@ -52,6 +53,7 @@ static inline void backdrop_show(enum backdrop_type bdrop) | |||
52 | (void)bdrop; | 53 | (void)bdrop; |
53 | } | 54 | } |
54 | 55 | ||
56 | static inline void backdrop_hide(void) {} | ||
55 | #endif | 57 | #endif |
56 | 58 | ||
57 | #if defined(HAVE_REMOTE_LCD) | 59 | #if defined(HAVE_REMOTE_LCD) |
@@ -60,6 +62,7 @@ static inline void backdrop_show(enum backdrop_type bdrop) | |||
60 | bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename); | 62 | bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename); |
61 | void remote_backdrop_unload(enum backdrop_type bdrop); | 63 | void remote_backdrop_unload(enum backdrop_type bdrop); |
62 | void remote_backdrop_show(enum backdrop_type bdrop); | 64 | void remote_backdrop_show(enum backdrop_type bdrop); |
65 | void remote_backdrop_hide(void); | ||
63 | #else | 66 | #else |
64 | static inline | 67 | static inline |
65 | bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename) | 68 | bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename) |
@@ -76,6 +79,7 @@ static inline void remote_backdrop_show(enum backdrop_type bdrop) | |||
76 | { | 79 | { |
77 | (void)bdrop; | 80 | (void)bdrop; |
78 | } | 81 | } |
82 | static inline void remote_backdrop_hide(void) {} | ||
79 | #endif | 83 | #endif |
80 | #endif | 84 | #endif |
81 | 85 | ||