CComponentsItem: add missing parameter to kill() member

Was not passed to parent methode.
This commit is contained in:
2016-01-28 21:02:52 +01:00
committed by M. Liebmann
parent 2207019bfd
commit 65de6dee9f
2 changed files with 24 additions and 8 deletions

View File

@@ -127,15 +127,15 @@ void CComponentsItem::paintInit(bool do_save_bg)
}
//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, const int& fblayer_type)
{
if(cc_parent == NULL){
CComponents::kill(bg_color, this->corner_rad);
CComponents::kill(bg_color, this->corner_rad, fblayer_type);
}else{
if(ignore_parent)
CComponents::kill(bg_color, this->corner_rad);
CComponents::kill(bg_color, this->corner_rad, fblayer_type);
else
CComponents::kill(cc_parent->getColorBody(), cc_parent->getCornerRadius());
CComponents::kill(cc_parent->getColorBody(), cc_parent->getCornerRadius(), fblayer_type);
}
}