invisible views are not allowed to draw

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15808 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-01-03 10:19:20 +00:00
parent 82b37bb257
commit 7324b0ceb8

View File

@ -871,6 +871,10 @@ void
ViewLayer::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping, ViewLayer::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
BRegion* windowContentClipping, bool deep) BRegion* windowContentClipping, bool deep)
{ {
if (!fVisible)
return;
// child views can not be visible either
if (fViewBitmap != NULL || !fViewColor.IsTransparentMagic()) { if (fViewBitmap != NULL || !fViewColor.IsTransparentMagic()) {
// we can only draw within our own area // we can only draw within our own area
BRegion redraw(ScreenClipping(windowContentClipping)); BRegion redraw(ScreenClipping(windowContentClipping));