void eWidget::setTransparent(int transp)
{
- if (transp)
- m_vis |= wVisTransparent;
- else
- m_vis &=~wVisTransparent;
+ if (isTransparent() != transp)
+ {
+ if (transp)
+ m_vis |= wVisTransparent;
+ else
+ m_vis &=~wVisTransparent;
+ recalcClipRegionsWhenVisible();
+ }
}
ePoint eWidget::getAbsolutePosition()
}
} else
{
- if (m_have_background_color)
- painter.setBackgroundColor(m_background_color);
+ eWidget *w = this;
+
+ while (w && !w->m_have_background_color)
+ w = w->m_parent;
+
+ if (w)
+ painter.setBackgroundColor(w->m_background_color);
}
break;
}