diff options
-rw-r--r-- | apps/gui/backdrop.h | 10 | ||||
-rw-r--r-- | apps/gui/skin_engine/skin_buffer.c | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/apps/gui/backdrop.h b/apps/gui/backdrop.h index 22cdceb28e..2ab379e1cd 100644 --- a/apps/gui/backdrop.h +++ b/apps/gui/backdrop.h | |||
@@ -35,13 +35,17 @@ void backdrop_show(char* backdrop_buffer); | |||
35 | #define LCD_BACKDROP_BYTES 0 | 35 | #define LCD_BACKDROP_BYTES 0 |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 && !defined(__PCTOOL__) | 38 | #if defined(HAVE_REMOTE_LCD) |
39 | #define REMOTE_LCD_BACKDROP_BYTES \ | ||
40 | (LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data)) | ||
41 | bool remote_backdrop_load(const char *filename, char* backdrop_buffer); | 39 | bool remote_backdrop_load(const char *filename, char* backdrop_buffer); |
42 | void remote_backdrop_show(char* backdrop_buffer); | 40 | void remote_backdrop_show(char* backdrop_buffer); |
41 | |||
42 | #if LCD_DEPTH > 1 && LCD_REMOTE_DEPTH > 1 && !defined(__PCTOOL__) | ||
43 | #define REMOTE_LCD_BACKDROP_BYTES \ | ||
44 | (LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data)) | ||
43 | #else | 45 | #else |
44 | #define REMOTE_LCD_BACKDROP_BYTES 0 | 46 | #define REMOTE_LCD_BACKDROP_BYTES 0 |
45 | #endif | 47 | #endif |
46 | 48 | ||
49 | #endif | ||
50 | |||
47 | #endif /* _BACKDROP_H */ | 51 | #endif /* _BACKDROP_H */ |
diff --git a/apps/gui/skin_engine/skin_buffer.c b/apps/gui/skin_engine/skin_buffer.c index a15ad10bee..3418b074a4 100644 --- a/apps/gui/skin_engine/skin_buffer.c +++ b/apps/gui/skin_engine/skin_buffer.c | |||
@@ -55,7 +55,7 @@ | |||
55 | 55 | ||
56 | 56 | ||
57 | #ifdef HAVE_LCD_BITMAP | 57 | #ifdef HAVE_LCD_BITMAP |
58 | #define MAIN_BUFFER ((2*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \ | 58 | #define MAIN_BUFFER ((1*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \ |
59 | + (SKINNABLE_SCREENS_COUNT * LCD_BACKDROP_BYTES)) | 59 | + (SKINNABLE_SCREENS_COUNT * LCD_BACKDROP_BYTES)) |
60 | 60 | ||
61 | #if (NB_SCREENS > 1) | 61 | #if (NB_SCREENS > 1) |