From 7324b0ceb85b9f3fcacd5188e579074e730be1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 3 Jan 2006 10:19:20 +0000 Subject: [PATCH] invisible views are not allowed to draw git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15808 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ViewLayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/servers/app/ViewLayer.cpp b/src/servers/app/ViewLayer.cpp index 149dccf9a5..229a4aa5df 100644 --- a/src/servers/app/ViewLayer.cpp +++ b/src/servers/app/ViewLayer.cpp @@ -871,6 +871,10 @@ void ViewLayer::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping, BRegion* windowContentClipping, bool deep) { + if (!fVisible) + return; + // child views can not be visible either + if (fViewBitmap != NULL || !fViewColor.IsTransparentMagic()) { // we can only draw within our own area BRegion redraw(ScreenClipping(windowContentClipping));