mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
shadow: paint shadow layer with multiple renderboxes
Should help to paint a clean shadow frame
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user