From ff8d43ddad6e26f14218c212503c551f5a7d6b26 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 14 Aug 2010 11:40:20 +0000 Subject: Change %xl/%xd to use proper labels instead of single letter labels. i.e %xl(playmode, playmode.bmp, 0, 0, 4) ... %xd(playmode, %mm). You can of course still use one letter labels if you really want. %xd(Aa) will only work with one letter labels. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27813 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/wps_internals.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/gui/skin_engine/wps_internals.h') diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index d42977ff19..e1516bd8fd 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -77,7 +77,7 @@ struct gui_img { short int num_subimages; /* number of sub-images */ short int subimage_height; /* height of each sub-image */ struct bitmap bm; - char label; + const char *label; bool loaded; /* load state */ bool always_display; /* not using the preload/display mechanism */ int display; @@ -85,7 +85,7 @@ struct gui_img { }; struct image_display { - char label; + const char *label; int subimage; struct wps_token *token; /* the token to get the subimage number from */ int offset; /* offset into the bitmap strip to start */ @@ -348,8 +348,8 @@ const char *get_radio_token(struct wps_token *token, int preset_offset, char *buf, int buf_size, int limit, int *intval); #endif -struct gui_img* find_image(char label, struct wps_data *data); -struct skin_viewport* find_viewport(char *label, bool uivp, struct wps_data *data); +struct gui_img* find_image(const char *label, struct wps_data *data); +struct skin_viewport* find_viewport(const char *label, bool uivp, struct wps_data *data); #ifdef SIMULATOR -- cgit v1.2.3