From 15ddd7a7ec2aa92767234e37907904309943a27b Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 23 Mar 2008 20:31:00 +0000 Subject: 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 --- apps/gui/gwps.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/gui/gwps.h') 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{ struct viewport* vp; /* The viewport to display this image in */ int x; /* x-pos */ int y; /* y-pos */ + int num_subimages; /* number of sub-images */ + int subimage_height; /* height of each sub-image */ + int display; /* -1 for no display, 0..n to display a subimage */ bool loaded; /* load state */ - bool display; /* is to be displayed */ bool always_display; /* not using the preload/display mechanism */ }; -- cgit v1.2.3