From 9dd2eb49bec19de06c5cfd168a0e4cd4dc44c867 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 15 Mar 2012 11:58:38 +1100 Subject: skin_engine: Support percentages for viewport positioning %V(0,50%,75%,50%,-) - make a viewport at x=0, y=half the lcd height, 75% lcd width and the remaining height (the other half) of the lcd. Change-Id: If26ccb65e8dc52c9225f3fd6d7b222d770add0f0 Reviewed-on: http://gerrit.rockbox.org/184 Reviewed-by: Thomas Martitz Tested-by: Thomas Martitz Reviewed-by: Jonathan Gordon --- lib/skin_parser/skin_parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/skin_parser/skin_parser.h') diff --git a/lib/skin_parser/skin_parser.h b/lib/skin_parser/skin_parser.h index 120112d995..ec51b64c8b 100644 --- a/lib/skin_parser/skin_parser.h +++ b/lib/skin_parser/skin_parser.h @@ -89,6 +89,7 @@ struct skin_tag_parameter { INTEGER, DECIMAL, /* stored in data.number as (whole*10)+part */ + PERCENT, /* stored in data.number as (whole*10)+part */ STRING, CODE, DEFAULT -- cgit v1.2.3