From 943de3ce49e3ff4bbdefa7459dbc3b885fe145ad Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 28 Oct 2010 11:00:36 +0000 Subject: 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 --- apps/gui/skin_engine/skin_parser.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/skin_engine/skin_parser.c') 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) return true; #endif return false; + case SKIN_TOKEN_HAVE_TOUCH: +#ifdef HAVE_TOUCHSCREEN + return true; +#else + return false; +#endif #if CONFIG_TUNER case SKIN_TOKEN_HAVE_RDS: -- cgit v1.2.3