diff options
Diffstat (limited to 'apps/gui/theme_settings.c')
-rw-r--r-- | apps/gui/theme_settings.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/gui/theme_settings.c b/apps/gui/theme_settings.c index f3628f60db..e9862eda3a 100644 --- a/apps/gui/theme_settings.c +++ b/apps/gui/theme_settings.c | |||
@@ -30,14 +30,21 @@ | |||
30 | #include "settings.h" | 30 | #include "settings.h" |
31 | #include "wps.h" | 31 | #include "wps.h" |
32 | #include "file.h" | 32 | #include "file.h" |
33 | #include "buffer.h" | ||
33 | #if CONFIG_TUNER | 34 | #if CONFIG_TUNER |
34 | #include "radio.h" | 35 | #include "radio.h" |
35 | #endif | 36 | #endif |
36 | #include "skin_engine/skin_engine.h" | 37 | #include "skin_engine/skin_engine.h" |
37 | #include "skin_engine/skin_fonts.h" | 38 | #include "skin_buffer.h" |
38 | #include "statusbar-skinned.h" | 39 | #include "statusbar-skinned.h" |
39 | #include "bootchart.h" | 40 | #include "bootchart.h" |
40 | 41 | ||
42 | static char *skin_buffer = NULL; | ||
43 | void theme_init_buffer(void) | ||
44 | { | ||
45 | skin_buffer = buffer_alloc(SKIN_BUFFER_SIZE); | ||
46 | } | ||
47 | |||
41 | 48 | ||
42 | /* call this after loading a .wps/.rwps or other skin files, so that the | 49 | /* call this after loading a .wps/.rwps or other skin files, so that the |
43 | * skin buffer is reset properly | 50 | * skin buffer is reset properly |
@@ -71,9 +78,10 @@ void settings_apply_skins(void) | |||
71 | { | 78 | { |
72 | char buf[MAX_PATH]; | 79 | char buf[MAX_PATH]; |
73 | /* re-initialize the skin buffer before we start reloading skins */ | 80 | /* re-initialize the skin buffer before we start reloading skins */ |
74 | skin_buffer_init(); | ||
75 | enum screen_type screen = SCREEN_MAIN; | 81 | enum screen_type screen = SCREEN_MAIN; |
76 | unsigned int i; | 82 | unsigned int i; |
83 | |||
84 | skin_buffer_init(skin_buffer, SKIN_BUFFER_SIZE); | ||
77 | #ifdef HAVE_LCD_BITMAP | 85 | #ifdef HAVE_LCD_BITMAP |
78 | skin_backdrop_init(); | 86 | skin_backdrop_init(); |
79 | skin_font_init(); | 87 | skin_font_init(); |