* little fixes

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7089 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2004-03-28 15:02:53 +00:00
parent 76f9576971
commit cd916e88f6
+5 -1
View File
@@ -124,8 +124,10 @@ void Desktop::Init(void)
}
}
if (driverCount < 1)
if (driverCount < 1){
delete this;
return;
}
InitMode();
@@ -146,6 +148,7 @@ void Desktop::InitMode(void)
RootLayer *rl = new RootLayer(name, 4, this, GetDisplayDriver());
rl->SetScreens(screens, 1, 1);
rl->RebuildFullRegion();
fRootLayerList.AddItem(rl);
}
@@ -197,6 +200,7 @@ void Desktop::SetActiveRootLayer(RootLayer* rl)
// Rebuild & Invalidate
// hide the mouse in the old ActiveRootLayer
// show the mouse in new ActiveRootLayer
fActiveRootLayer->FullInvalidate(fActiveRootLayer->Bounds());
}
RootLayer* Desktop::ActiveRootLayer(void) const