CComponentsItem: add missing parameter to kill() member

Was not passed to parent methode.


Origin commit data
------------------
Commit: 65de6dee9f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-28 (Thu, 28 Jan 2016)
This commit is contained in:
2016-01-28 21:02:52 +01:00
committed by Michael Liebmann
parent eab76812a3
commit a8154e53d6
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);
}
}