summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/theme_settings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/theme_settings.c b/apps/gui/theme_settings.c
index 23e7a5bbaf..fdc4976968 100644
--- a/apps/gui/theme_settings.c
+++ b/apps/gui/theme_settings.c
@@ -35,7 +35,6 @@
35#include "statusbar-skinned.h" 35#include "statusbar-skinned.h"
36 36
37 37
38
39/* call this after loading a .wps/.rwps or other skin files, so that the 38/* call this after loading a .wps/.rwps or other skin files, so that the
40 * skin buffer is reset properly 39 * skin buffer is reset properly
41 */ 40 */
@@ -44,7 +43,8 @@ struct skin_load_setting {
44 char* suffix; 43 char* suffix;
45 void (*loadfunc)(enum screen_type screen, const char *buf, bool isfile); 44 void (*loadfunc)(enum screen_type screen, const char *buf, bool isfile);
46}; 45};
47static struct skin_load_setting skins[] = { 46
47static const struct skin_load_setting skins[] = {
48 /* This determins the load order. *sbs must be loaded before any other 48 /* This determins the load order. *sbs must be loaded before any other
49 * skin on that screen */ 49 * skin on that screen */
50#ifdef HAVE_LCD_BITMAP 50#ifdef HAVE_LCD_BITMAP
@@ -70,7 +70,7 @@ void settings_apply_skins(void)
70 sb_skin_init(); 70 sb_skin_init();
71#endif 71#endif
72 gui_sync_wps_init(); 72 gui_sync_wps_init();
73 for (i=0; i<sizeof(skins)/sizeof(*skins); i++) 73 for (i=0; i<ARRAYLEN(skins); i++)
74 { 74 {
75#ifdef HAVE_REMOTE_LCD 75#ifdef HAVE_REMOTE_LCD
76 screen = skins[i].suffix[0] == 'r' ? SCREEN_REMOTE : SCREEN_MAIN; 76 screen = skins[i].suffix[0] == 'r' ? SCREEN_REMOTE : SCREEN_MAIN;