diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index ecfdfaa9e5..b66af75cb5 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -154,6 +154,8 @@ static int parse_statusbar_enable(const char *wps_bufptr, | |||
154 | struct wps_token *token, struct wps_data *wps_data); | 154 | struct wps_token *token, struct wps_data *wps_data); |
155 | static int parse_statusbar_disable(const char *wps_bufptr, | 155 | static int parse_statusbar_disable(const char *wps_bufptr, |
156 | struct wps_token *token, struct wps_data *wps_data); | 156 | struct wps_token *token, struct wps_data *wps_data); |
157 | static int parse_statusbar_inbuilt(const char *wps_bufptr, | ||
158 | struct wps_token *token, struct wps_data *wps_data); | ||
157 | static int parse_image_display(const char *wps_bufptr, | 159 | static int parse_image_display(const char *wps_bufptr, |
158 | struct wps_token *token, struct wps_data *wps_data); | 160 | struct wps_token *token, struct wps_data *wps_data); |
159 | static int parse_image_load(const char *wps_bufptr, | 161 | static int parse_image_load(const char *wps_bufptr, |
@@ -349,6 +351,7 @@ static const struct wps_tag all_tags[] = { | |||
349 | #ifdef HAVE_LCD_BITMAP | 351 | #ifdef HAVE_LCD_BITMAP |
350 | { WPS_NO_TOKEN, "we", 0, parse_statusbar_enable }, | 352 | { WPS_NO_TOKEN, "we", 0, parse_statusbar_enable }, |
351 | { WPS_NO_TOKEN, "wd", 0, parse_statusbar_disable }, | 353 | { WPS_NO_TOKEN, "wd", 0, parse_statusbar_disable }, |
354 | { WPS_TOKEN_DRAW_INBUILTBAR, "wi", WPS_REFRESH_DYNAMIC, parse_statusbar_inbuilt }, | ||
352 | 355 | ||
353 | { WPS_NO_TOKEN, "xl", 0, parse_image_load }, | 356 | { WPS_NO_TOKEN, "xl", 0, parse_image_load }, |
354 | 357 | ||
@@ -562,6 +565,14 @@ static int parse_statusbar_disable(const char *wps_bufptr, | |||
562 | return skip_end_of_line(wps_bufptr); | 565 | return skip_end_of_line(wps_bufptr); |
563 | } | 566 | } |
564 | 567 | ||
568 | static int parse_statusbar_inbuilt(const char *wps_bufptr, | ||
569 | struct wps_token *token, struct wps_data *wps_data) | ||
570 | { | ||
571 | (void)wps_data; | ||
572 | token->value.data = (void*)&curr_vp->vp; | ||
573 | return skip_end_of_line(wps_bufptr); | ||
574 | } | ||
575 | |||
565 | static int get_image_id(int c) | 576 | static int get_image_id(int c) |
566 | { | 577 | { |
567 | if(c >= 'a' && c <= 'z') | 578 | if(c >= 'a' && c <= 'z') |