mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CComponents/CComponentsItem: simplify statement
This commit is contained in:
@@ -137,13 +137,10 @@ void CComponentsItem::hide(bool no_restore)
|
|||||||
//erase or paint over rendered objects
|
//erase or paint over rendered objects
|
||||||
void CComponentsItem::kill(const fb_pixel_t& bg_color, bool ignore_parent)
|
void CComponentsItem::kill(const fb_pixel_t& bg_color, bool ignore_parent)
|
||||||
{
|
{
|
||||||
if(bg_color || cc_parent == NULL){
|
if(cc_parent == NULL){
|
||||||
CComponents::kill(bg_color);
|
CComponents::kill(bg_color);
|
||||||
return;
|
}else{
|
||||||
}
|
if(ignore_parent)
|
||||||
|
|
||||||
if (cc_parent){
|
|
||||||
if(bg_color || ignore_parent)
|
|
||||||
CComponents::kill(bg_color);
|
CComponents::kill(bg_color);
|
||||||
else
|
else
|
||||||
CComponents::kill(cc_parent->getColorBody());
|
CComponents::kill(cc_parent->getColorBody());
|
||||||
|
Reference in New Issue
Block a user