* commented out the code to invalidate a view when
it is added our removed to another view, this is taken care of in View.cpp until we find something better git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17511 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -229,17 +229,17 @@ ViewLayer::AddChild(ViewLayer* layer)
|
||||
if (fWindow) {
|
||||
layer->AttachedToWindow(fWindow);
|
||||
|
||||
if (fVisible && layer->IsVisible()) {
|
||||
// trigger redraw
|
||||
BRect clippedFrame = layer->Frame();
|
||||
ConvertToVisibleInTopView(&clippedFrame);
|
||||
BRegion* dirty = fWindow->GetRegion();
|
||||
if (dirty) {
|
||||
dirty->Set(clippedFrame);
|
||||
fWindow->MarkContentDirty(*dirty);
|
||||
fWindow->RecycleRegion(dirty);
|
||||
}
|
||||
}
|
||||
// if (layer->IsVisible()) {
|
||||
// // trigger redraw
|
||||
// BRect clippedFrame = layer->Frame();
|
||||
// ConvertToVisibleInTopView(&clippedFrame);
|
||||
// BRegion* dirty = fWindow->GetRegion();
|
||||
// if (dirty) {
|
||||
// dirty->Set(clippedFrame);
|
||||
// fWindow->MarkContentDirtyAsync(*dirty);
|
||||
// fWindow->RecycleRegion(dirty);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,17 +284,17 @@ ViewLayer::RemoveChild(ViewLayer* layer)
|
||||
if (fWindow) {
|
||||
layer->DetachedFromWindow();
|
||||
|
||||
if (fVisible && layer->IsVisible()) {
|
||||
// trigger redraw
|
||||
BRect clippedFrame = layer->Frame();
|
||||
ConvertToVisibleInTopView(&clippedFrame);
|
||||
BRegion* dirty = fWindow->GetRegion();
|
||||
if (dirty) {
|
||||
dirty->Set(clippedFrame);
|
||||
fWindow->MarkContentDirty(*dirty);
|
||||
fWindow->RecycleRegion(dirty);
|
||||
}
|
||||
}
|
||||
// if (fVisible && layer->IsVisible()) {
|
||||
// // trigger redraw
|
||||
// BRect clippedFrame = layer->Frame();
|
||||
// ConvertToVisibleInTopView(&clippedFrame);
|
||||
// BRegion* dirty = fWindow->GetRegion();
|
||||
// if (dirty) {
|
||||
// dirty->Set(clippedFrame);
|
||||
// fWindow->MarkContentDirtyAsync(*dirty);
|
||||
// fWindow->RecycleRegion(dirty);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user