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:
Jérôme Duval 2006-02-08 17:49:49 +00:00
parent b3c980ab0e
commit cd64165bac
1 changed files with 1 additions and 1 deletions

View File

@ -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;