use the current screen
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16298 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -56,7 +56,7 @@ TMWindow::TMWindow()
|
|||||||
fView->GetPreferredSize(&width, &height);
|
fView->GetPreferredSize(&width, &height);
|
||||||
ResizeTo(width, height);
|
ResizeTo(width, height);
|
||||||
|
|
||||||
BRect screenFrame = BScreen(B_MAIN_SCREEN_ID).Frame();
|
BRect screenFrame = BScreen(this).Frame();
|
||||||
BPoint point;
|
BPoint point;
|
||||||
point.x = (screenFrame.Width() - Bounds().Width()) / 2;
|
point.x = (screenFrame.Width() - Bounds().Width()) / 2;
|
||||||
point.y = (screenFrame.Height() - Bounds().Height()) / 2;
|
point.y = (screenFrame.Height() - Bounds().Height()) / 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user