From 84efb00f6b7b30ddbfd0551aae3130e86c90562c Mon Sep 17 00:00:00 2001 From: mrwastl Date: Tue, 24 May 2011 21:21:52 +0200 Subject: support for transparency (images and text); text and images are transparent per default; bug fix: crash when allocing bitmap object with width=0 --- glcdskin/parser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'glcdskin') diff --git a/glcdskin/parser.c b/glcdskin/parser.c index 31b3106..957f44f 100644 --- a/glcdskin/parser.c +++ b/glcdskin/parser.c @@ -249,6 +249,10 @@ bool StartElem(const std::string & name, std::map & att } object = new cSkinObject(display); + + /* default settings */ + object->ParseColor("transparent", object->mBackgroundColor); + if (object->ParseType(name)) { ATTRIB_OPT_FUNC_PARAM("x1", object->ParseIntParam, object->mPos1.x); -- cgit v1.2.3