summaryrefslogtreecommitdiff
path: root/glcdskin/skin.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-05-01 22:22:32 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-05-01 22:22:32 +0200
commit46e597df44402086edd010b69702c2de52b75fc8 (patch)
treefa9528f19f951b765b071c239b09547cf69bd169 /glcdskin/skin.c
parent57729cf285b058d192a60bd7fce1b2d29bdd9650 (diff)
downloadgraphlcd-base-46e597df44402086edd010b69702c2de52b75fc8.tar.gz
graphlcd-base-46e597df44402086edd010b69702c2de52b75fc8.tar.bz2
initial upload to branch 'touchcol'. see file 'HISTORY' for changes
Diffstat (limited to 'glcdskin/skin.c')
-rw-r--r--glcdskin/skin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/glcdskin/skin.c b/glcdskin/skin.c
index a7facdd..c4e8e4b 100644
--- a/glcdskin/skin.c
+++ b/glcdskin/skin.c
@@ -79,4 +79,16 @@ cSkinVariable * cSkin::GetVariable(const std::string & Id)
}
+bool cSkin::ParseEnable(const std::string & Text)
+{
+ cDriver * driver = config.GetDriver();
+
+ if (!driver)
+ return false;
+
+ driver->SetFeature(Text, 1);
+ return true; // always return true else loading the skin would fail if touchscreen is not available
+}
+
+
} // end of namespace