Renamed myRootLayer variable to rootLayer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -543,10 +543,10 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
RootLayer *myRootLayer = fWinBorder->GetRootLayer();
|
RootLayer *rootLayer = fWinBorder->GetRootLayer();
|
||||||
// NOTE: is NULL when fWinBorder is offscreen!
|
// NOTE: is NULL when fWinBorder is offscreen!
|
||||||
if (myRootLayer)
|
if (rootLayer)
|
||||||
myRootLayer->Lock();
|
rootLayer->Lock();
|
||||||
|
|
||||||
switch (code) {
|
switch (code) {
|
||||||
//--------- BView Messages -----------------
|
//--------- BView Messages -----------------
|
||||||
@@ -625,14 +625,14 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
if (parent != NULL)
|
if (parent != NULL)
|
||||||
parent->AddChild(newLayer, this);
|
parent->AddChild(newLayer, this);
|
||||||
|
|
||||||
if (myRootLayer && !newLayer->IsHidden() && parent) {
|
if (rootLayer && !newLayer->IsHidden() && parent) {
|
||||||
BRegion invalidRegion;
|
BRegion invalidRegion;
|
||||||
newLayer->GetOnScreenRegion(invalidRegion);
|
newLayer->GetOnScreenRegion(invalidRegion);
|
||||||
parent->MarkForRebuild(invalidRegion);
|
parent->MarkForRebuild(invalidRegion);
|
||||||
parent->TriggerRebuild();
|
parent->TriggerRebuild();
|
||||||
if (newLayer->VisibleRegion().Frame().IsValid()) {
|
if (newLayer->VisibleRegion().Frame().IsValid()) {
|
||||||
myRootLayer->MarkForRedraw(newLayer->VisibleRegion());
|
rootLayer->MarkForRedraw(newLayer->VisibleRegion());
|
||||||
myRootLayer->TriggerRedraw();
|
rootLayer->TriggerRedraw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -649,10 +649,10 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
STRACE(("ServerWindow %s: AS_LAYER_DELETE view: %p, parent: %p\n", fTitle,
|
STRACE(("ServerWindow %s: AS_LAYER_DELETE view: %p, parent: %p\n", fTitle,
|
||||||
fCurrentLayer, parent));
|
fCurrentLayer, parent));
|
||||||
|
|
||||||
if (!fCurrentLayer->IsHidden() && parent && myRootLayer
|
if (!fCurrentLayer->IsHidden() && parent && rootLayer
|
||||||
&& fCurrentLayer->FullVisible().Frame().IsValid()) {
|
&& fCurrentLayer->FullVisible().Frame().IsValid()) {
|
||||||
parent->MarkForRebuild(fCurrentLayer->FullVisible());
|
parent->MarkForRebuild(fCurrentLayer->FullVisible());
|
||||||
myRootLayer->MarkForRedraw(fCurrentLayer->FullVisible());
|
rootLayer->MarkForRedraw(fCurrentLayer->FullVisible());
|
||||||
}
|
}
|
||||||
|
|
||||||
// here we remove current layer from list.
|
// here we remove current layer from list.
|
||||||
@@ -661,9 +661,9 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
if (parent)
|
if (parent)
|
||||||
parent->TriggerRebuild();
|
parent->TriggerRebuild();
|
||||||
|
|
||||||
if (myRootLayer) {
|
if (rootLayer) {
|
||||||
myRootLayer->LayerRemoved(fCurrentLayer);
|
rootLayer->LayerRemoved(fCurrentLayer);
|
||||||
myRootLayer->TriggerRedraw();
|
rootLayer->TriggerRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_SERVERWINDOW
|
#ifdef DEBUG_SERVERWINDOW
|
||||||
@@ -713,8 +713,8 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
fCurrentLayer->QuietlySetEventMask(mask);
|
fCurrentLayer->QuietlySetEventMask(mask);
|
||||||
fCurrentLayer->QuietlySetEventOptions(options);
|
fCurrentLayer->QuietlySetEventOptions(options);
|
||||||
|
|
||||||
if (myRootLayer)
|
if (rootLayer)
|
||||||
myRootLayer->AddToInputNotificationLists(fCurrentLayer, mask, options);
|
rootLayer->AddToInputNotificationLists(fCurrentLayer, mask, options);
|
||||||
}
|
}
|
||||||
case AS_LAYER_SET_MOUSE_EVENT_MASK:
|
case AS_LAYER_SET_MOUSE_EVENT_MASK:
|
||||||
{
|
{
|
||||||
@@ -726,8 +726,8 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
link.Read<uint32>(&mask);
|
link.Read<uint32>(&mask);
|
||||||
link.Read<uint32>(&options);
|
link.Read<uint32>(&options);
|
||||||
|
|
||||||
if (myRootLayer)
|
if (rootLayer)
|
||||||
myRootLayer->SetNotifyLayer(fCurrentLayer, mask, options);
|
rootLayer->SetNotifyLayer(fCurrentLayer, mask, options);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_LAYER_MOVE_TO:
|
case AS_LAYER_MOVE_TO:
|
||||||
@@ -938,16 +938,16 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
rgb_color c;
|
rgb_color c;
|
||||||
|
|
||||||
link.Read(&c, sizeof(rgb_color));
|
link.Read(&c, sizeof(rgb_color));
|
||||||
if (myRootLayer)
|
if (rootLayer)
|
||||||
myRootLayer->Lock();
|
rootLayer->Lock();
|
||||||
fCurrentLayer->SetViewColor(RGBColor(c));
|
fCurrentLayer->SetViewColor(RGBColor(c));
|
||||||
|
|
||||||
if (myRootLayer) {
|
if (rootLayer) {
|
||||||
myRootLayer->MarkForRedraw(fCurrentLayer->VisibleRegion());
|
rootLayer->MarkForRedraw(fCurrentLayer->VisibleRegion());
|
||||||
myRootLayer->TriggerRedraw();
|
rootLayer->TriggerRedraw();
|
||||||
}
|
}
|
||||||
if (myRootLayer)
|
if (rootLayer)
|
||||||
myRootLayer->Unlock();
|
rootLayer->Unlock();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1058,7 +1058,7 @@ if (myRootLayer)
|
|||||||
|
|
||||||
fCurrentLayer->CurrentState()->SetClippingRegion(region);
|
fCurrentLayer->CurrentState()->SetClippingRegion(region);
|
||||||
|
|
||||||
if (myRootLayer && !(fCurrentLayer->IsHidden()) && !fWinBorder->InUpdate()) {
|
if (rootLayer && !(fCurrentLayer->IsHidden()) && !fWinBorder->InUpdate()) {
|
||||||
BRegion invalidRegion;
|
BRegion invalidRegion;
|
||||||
fCurrentLayer->GetOnScreenRegion(invalidRegion);
|
fCurrentLayer->GetOnScreenRegion(invalidRegion);
|
||||||
|
|
||||||
@@ -1066,8 +1066,8 @@ if (myRootLayer)
|
|||||||
|
|
||||||
fCurrentLayer->fParent->MarkForRebuild(invalidRegion);
|
fCurrentLayer->fParent->MarkForRebuild(invalidRegion);
|
||||||
fCurrentLayer->fParent->TriggerRebuild();
|
fCurrentLayer->fParent->TriggerRebuild();
|
||||||
myRootLayer->MarkForRedraw(invalidRegion);
|
rootLayer->MarkForRedraw(invalidRegion);
|
||||||
myRootLayer->TriggerRedraw();
|
rootLayer->TriggerRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -1126,15 +1126,15 @@ if (myRootLayer)
|
|||||||
|
|
||||||
link.Read<BRect>(&invalRect);
|
link.Read<BRect>(&invalRect);
|
||||||
|
|
||||||
if (myRootLayer) {
|
if (rootLayer) {
|
||||||
BRect converted(invalRect.LeftTop(), invalRect.RightBottom());
|
BRect converted(invalRect.LeftTop(), invalRect.RightBottom());
|
||||||
|
|
||||||
fCurrentLayer->ConvertToScreen(&converted);
|
fCurrentLayer->ConvertToScreen(&converted);
|
||||||
|
|
||||||
BRegion invalidRegion(converted);
|
BRegion invalidRegion(converted);
|
||||||
invalidRegion.IntersectWith(&fCurrentLayer->VisibleRegion());
|
invalidRegion.IntersectWith(&fCurrentLayer->VisibleRegion());
|
||||||
myRootLayer->MarkForRedraw(invalidRegion);
|
rootLayer->MarkForRedraw(invalidRegion);
|
||||||
myRootLayer->TriggerRedraw();
|
rootLayer->TriggerRedraw();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1155,11 +1155,11 @@ if (myRootLayer)
|
|||||||
invalidReg.Include(rect);
|
invalidReg.Include(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myRootLayer) {
|
if (rootLayer) {
|
||||||
fCurrentLayer->ConvertToScreen(&invalidReg);
|
fCurrentLayer->ConvertToScreen(&invalidReg);
|
||||||
|
|
||||||
myRootLayer->MarkForRedraw(invalidReg);
|
rootLayer->MarkForRedraw(invalidReg);
|
||||||
myRootLayer->TriggerRedraw();
|
rootLayer->TriggerRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -1442,9 +1442,9 @@ if (myRootLayer)
|
|||||||
|
|
||||||
link.Read<bool>(&activate);
|
link.Read<bool>(&activate);
|
||||||
|
|
||||||
if (myRootLayer && myRootLayer->Lock()) {
|
if (rootLayer && rootLayer->Lock()) {
|
||||||
myRootLayer->SetActive(fWinBorder, activate);
|
rootLayer->SetActive(fWinBorder, activate);
|
||||||
myRootLayer->Unlock();
|
rootLayer->Unlock();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1622,8 +1622,8 @@ if (myRootLayer)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myRootLayer)
|
if (rootLayer)
|
||||||
myRootLayer->Unlock();
|
rootLayer->Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------- Graphics messages ----------------------------------
|
// -------------------- Graphics messages ----------------------------------
|
||||||
@@ -2056,7 +2056,7 @@ ServerWindow::_MessageLooper()
|
|||||||
// of that and stop for a moment.
|
// of that and stop for a moment.
|
||||||
// also we must wait a bit for the associated WinBorder to become hidden
|
// also we must wait a bit for the associated WinBorder to become hidden
|
||||||
//while(1) {
|
//while(1) {
|
||||||
// myRootLayer->Lock();
|
// rootLayer->Lock();
|
||||||
// if (IsHidden())
|
// if (IsHidden())
|
||||||
// break;
|
// break;
|
||||||
// else
|
// else
|
||||||
|
|||||||
Reference in New Issue
Block a user