mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CComponents: use paintBoxRel() only in kill()
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of undesirable parts on corners.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user