diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-02 12:50:23 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-02 12:50:23 +0000 |
| commit | ee4f8a9a6bc313cd878f84a6c9832b6094685460 (patch) | |
| tree | 2f2e77e7467dafb9a21218d23bad59798f813481 /apps/gui/skin_engine/wps_internals.h | |
| parent | bc046ff899b472279bf56b38f6f27ad6f225d2e1 (diff) | |
| download | rockbox-ee4f8a9a6bc313cd878f84a6c9832b6094685460.zip rockbox-ee4f8a9a6bc313cd878f84a6c9832b6094685460.tar.gz rockbox-ee4f8a9a6bc313cd878f84a6c9832b6094685460.tar.bz2 rockbox-ee4f8a9a6bc313cd878f84a6c9832b6094685460.tar.xz | |
Allow viewport labels to be mostly free text instead of only one character. If this is useful the same will be done for images
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27665 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
| -rw-r--r-- | apps/gui/skin_engine/wps_internals.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index f8e0259..709dbc6 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -151,13 +151,12 @@ enum wps_parse_error { #define VP_DRAW_WASHIDDEN 0x4 /* these are never drawn, nor cleared, i.e. just ignored */ #define VP_NEVER_VISIBLE 0x8 -#define VP_DEFAULT_LABEL '|' -#define VP_NO_LABEL '-' -#define VP_INFO_LABEL 0x80 +#define VP_DEFAULT_LABEL "|" struct skin_viewport { struct viewport vp; /* The LCD viewport struct */ char hidden_flags; - char label; + bool is_infovp; + char* label; unsigned start_fgcolour; unsigned start_bgcolour; }; @@ -340,7 +339,7 @@ const char *get_radio_token(struct wps_token *token, int preset_offset, #endif struct gui_img* find_image(char label, struct wps_data *data); -struct skin_viewport* find_viewport(char label, struct wps_data *data); +struct skin_viewport* find_viewport(char *label, bool uivp, struct wps_data *data); #ifdef SIMULATOR |