modified a little how the _full region is built for the top_layer

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7602 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2004-05-16 19:21:51 +00:00
parent 37811ae65e
commit 385e94dbf4
+6 -4
View File
@@ -590,8 +590,7 @@ uint32 Layer::CountChildren(void) const
}
void Layer::RebuildFullRegion( ){
if (_parent && !IsTopLayer())
if (_parent)
_full.Set( _parent->ConvertToTop( _frame ) );
else
_full.Set( _frame );
@@ -614,8 +613,11 @@ void Layer::RebuildFullRegion( ){
_full.IntersectWith( clipToPicture );
}
if(IsTopLayer()){
_full.Exclude( _serverwin->fWinBorder->fDecFull );
if(IsTopLayer() && _serverwin){
if (_serverwin->fWinBorder->fDecorator){
// decorator overlaping topLayer? make decorator be in front.
_full.Exclude( _serverwin->fWinBorder->fDecFull );
}
}
}