shadow: paint shadow layer with multiple renderboxes

Should help to paint a clean shadow frame
This commit is contained in:
2016-08-18 11:20:45 +02:00
parent be740c1552
commit 307b2763bd
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();