I don't know why, but when starting Tracker there is no root layer here
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14717 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -126,6 +126,10 @@ WinBorder::WinBorder(const BRect &frame,
|
|||||||
uint16 width, height;
|
uint16 width, height;
|
||||||
uint32 colorSpace;
|
uint32 colorSpace;
|
||||||
float frequency;
|
float frequency;
|
||||||
|
if (GetRootLayer() == NULL)
|
||||||
|
debugger("WinBorder: no root layer");
|
||||||
|
if (GetRootLayer()->GetDesktop() == NULL)
|
||||||
|
debugger("WinBorder: no desktop");
|
||||||
if (GetRootLayer()->GetDesktop()->ScreenAt(0)) {
|
if (GetRootLayer()->GetDesktop()->ScreenAt(0)) {
|
||||||
GetRootLayer()->GetDesktop()->ScreenAt(0)->GetMode(width, height, colorSpace, frequency);
|
GetRootLayer()->GetDesktop()->ScreenAt(0)->GetMode(width, height, colorSpace, frequency);
|
||||||
_ResizeBy(width - frame.Width(), height - frame.Height());
|
_ResizeBy(width - frame.Width(), height - frame.Height());
|
||||||
|
|||||||
Reference in New Issue
Block a user