Minor change/renames in Widget::flushRedraw()

This commit is contained in:
David Capello 2016-01-04 17:50:21 -03:00
parent 3bad2af2f3
commit e64cc958ce

View File

@ -894,9 +894,9 @@ void Widget::flushRedraw()
if (!widget->m_updateRegion.isEmpty()) {
// Intersect m_updateRegion with drawable area.
{
Region region;
widget->getDrawableRegion(region, kCutTopWindows);
widget->m_updateRegion.createIntersection(widget->m_updateRegion, region);
Region drawable;
widget->getDrawableRegion(drawable, kCutTopWindows);
widget->m_updateRegion &= drawable;
}
std::size_t c, nrects = widget->m_updateRegion.size();