summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-03-23 20:31:00 +0000
committerDave Chapman <dave@dchapman.com>2008-03-23 20:31:00 +0000
commit15ddd7a7ec2aa92767234e37907904309943a27b (patch)
tree5dff9b41fe0b8948c85c3eda66c62ffe780cb4a7 /apps/gui/gwps.h
parentb8b03370e4a3e1ec20324e9055065c77873e30f7 (diff)
downloadrockbox-15ddd7a7ec2aa92767234e37907904309943a27b.tar.gz
rockbox-15ddd7a7ec2aa92767234e37907904309943a27b.zip
Add the ability to use bitmap strips (a single .bmp file containing many images of the same dimensions, tiled vertically - similar to icon strips) in the WPS. The %xl tag now has an optional "number of subimages" parameter, and the %xd tag has an optional "subimage to display" parameter (a-z,A-Z - allowing up to 52 sub-images). So for example, a bitmap with 10 subimages is loaded with %xl|M|volume.bmp|134|153|10| and then this can be used in a conditional as %?pv<%xdMa|%xdMb|%xdMc|%xdMd|%xdMe|%xdMf|%xdMg|%xdMh|%xdMi|%xdMj>.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16764 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.h')
-rw-r--r--apps/gui/gwps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h
index e72b41308b..b24c243cd7 100644
--- a/apps/gui/gwps.h
+++ b/apps/gui/gwps.h
@@ -64,8 +64,10 @@ struct gui_img{
64 struct viewport* vp; /* The viewport to display this image in */ 64 struct viewport* vp; /* The viewport to display this image in */
65 int x; /* x-pos */ 65 int x; /* x-pos */
66 int y; /* y-pos */ 66 int y; /* y-pos */
67 int num_subimages; /* number of sub-images */
68 int subimage_height; /* height of each sub-image */
69 int display; /* -1 for no display, 0..n to display a subimage */
67 bool loaded; /* load state */ 70 bool loaded; /* load state */
68 bool display; /* is to be displayed */
69 bool always_display; /* not using the preload/display mechanism */ 71 bool always_display; /* not using the preload/display mechanism */
70}; 72};
71 73