use the current screen

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-02-08 17:48:43 +00:00
parent 9ff44370c8
commit b3c980ab0e
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ ExpanderPreferences::ExpanderPreferences(BMessage *settings)
new BMessage(MSG_CANCEL));
background->AddChild(button);
BScreen screen;
BScreen screen(this);
MoveBy((screen.Frame().Width()-Bounds().Width())/2,
(screen.Frame().Height()-Bounds().Height())/2);

View File

@ -163,7 +163,7 @@ ExpanderWindow::ExpanderWindow(BRect frame_rect, const entry_ref *ref, BMessage
box->AddChild(fListingScroll);
fListingScroll->Hide();
SetSizeLimits(450, BScreen().Frame().Width(), 120, 120);
SetSizeLimits(450, BScreen(this).Frame().Width(), 120, 120);
// finish creating window
Show();