diff options
-rw-r--r-- | apps/gui/skin_engine/skin_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_buffer.c b/apps/gui/skin_engine/skin_buffer.c index a15ad10bee..6d6a1ae179 100644 --- a/apps/gui/skin_engine/skin_buffer.c +++ b/apps/gui/skin_engine/skin_buffer.c | |||
@@ -55,11 +55,11 @@ | |||
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 ((2*LCD_BACKDROP_BYTES) \ |
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) |
62 | #define REMOTE_BUFFER (2*(LCD_REMOTE_HEIGHT*LCD_REMOTE_WIDTH*LCD_REMOTE_DEPTH/8) \ | 62 | #define REMOTE_BUFFER (2*REMOTE_LCD_BACKDROP_BYTES) \ |
63 | + (SKINNABLE_SCREENS_COUNT * REMOTE_LCD_BACKDROP_BYTES)) | 63 | + (SKINNABLE_SCREENS_COUNT * REMOTE_LCD_BACKDROP_BYTES)) |
64 | #else | 64 | #else |
65 | #define REMOTE_BUFFER 0 | 65 | #define REMOTE_BUFFER 0 |