shadow: paint shadow layer with multiple renderboxes

Should help to paint a clean shadow frame


Origin commit data
------------------
Branch: ni/coolstream
Commit: 307b2763bd
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)

Origin message was:
------------------
shadow: paint shadow layer with multiple renderboxes

Should help to paint a clean shadow frame


------------------
This commit was generated by Migit
This commit is contained in:
2016-08-18 11:20:45 +02:00
parent cb82b046cb
commit 6c4c454434
2 changed files with 42 additions and 17 deletions

View File

@@ -394,8 +394,10 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
return res;
}
else if (actionKey == "square"){
if (sq == NULL)
sq = new CComponentsShapeSquare (100, 220, 100, 100, NULL, false);
if (sq == NULL){
sq = new CComponentsShapeSquare (100, 220, 100, 100, NULL, CC_SHADOW_ON, COL_MENUCONTENT_PLUS_6, COL_MENUCONTENT_PLUS_0, COL_RED);
sq->setCorner(11);
}
if (!sq->isPainted())
sq->paint();