diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-28 11:00:36 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-28 11:00:36 +0000 |
commit | 943de3ce49e3ff4bbdefa7459dbc3b885fe145ad (patch) | |
tree | 4d0791456aa944700570e7207f6f8717e8c1a667 /apps/gui/skin_engine/skin_parser.c | |
parent | db2a8ffd30f3c1b5a17f318d4acbbeab54bab4c3 (diff) | |
download | rockbox-943de3ce49e3ff4bbdefa7459dbc3b885fe145ad.tar.gz rockbox-943de3ce49e3ff4bbdefa7459dbc3b885fe145ad.zip |
skin_parser: Change the way hardware conditionals are done (i.e %?cc)
They now only parse the correct branch (so only the true branch, or only the false branch). This shuold allow you to load different images/backdrops with the same id's depending on the targets hardware.
Add a new %Tp - "touchscreen present?" tag to check if the target has a touchscreen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28370 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index ed475acb2b..43c2ffa304 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1031,6 +1031,12 @@ static bool check_feature_tag(const int type) | |||
1031 | return true; | 1031 | return true; |
1032 | #endif | 1032 | #endif |
1033 | return false; | 1033 | return false; |
1034 | case SKIN_TOKEN_HAVE_TOUCH: | ||
1035 | #ifdef HAVE_TOUCHSCREEN | ||
1036 | return true; | ||
1037 | #else | ||
1038 | return false; | ||
1039 | #endif | ||
1034 | 1040 | ||
1035 | #if CONFIG_TUNER | 1041 | #if CONFIG_TUNER |
1036 | case SKIN_TOKEN_HAVE_RDS: | 1042 | case SKIN_TOKEN_HAVE_RDS: |