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:
parent
b3c980ab0e
commit
cd64165bac
@ -56,7 +56,7 @@ TMWindow::TMWindow()
|
||||
fView->GetPreferredSize(&width, &height);
|
||||
ResizeTo(width, height);
|
||||
|
||||
BRect screenFrame = BScreen(B_MAIN_SCREEN_ID).Frame();
|
||||
BRect screenFrame = BScreen(this).Frame();
|
||||
BPoint point;
|
||||
point.x = (screenFrame.Width() - Bounds().Width()) / 2;
|
||||
point.y = (screenFrame.Height() - Bounds().Height()) / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user