CComponents: use paintBoxRel() only in kill()

paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.
This commit is contained in:
2014-05-18 21:49:07 +02:00
parent 336ddf75b6
commit dc007e810a
3 changed files with 14 additions and 7 deletions

View File

@@ -138,12 +138,12 @@ void CComponentsItem::hide(bool no_restore)
void CComponentsItem::kill(const fb_pixel_t& bg_color, bool ignore_parent)
{
if(cc_parent == NULL){
CComponents::kill(bg_color);
CComponents::kill(bg_color, this->corner_rad);
}else{
if(ignore_parent)
CComponents::kill(bg_color);
CComponents::kill(bg_color, this->corner_rad);
else
CComponents::kill(cc_parent->getColorBody());
CComponents::kill(cc_parent->getColorBody(), cc_parent->getCornerRadius());
}
}