mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-06 13:18:27 +02:00
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:
@@ -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