use the current screen

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16299 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-02-08 17:50:36 +00:00
parent cd64165bac
commit 09362b0d5c

View File

@ -15,7 +15,7 @@
void
PasswordWindow::Setup()
{
BScreen theScreen(B_MAIN_SCREEN_ID);
BScreen theScreen(this);
MoveTo((theScreen.Frame().IntegerWidth()-Bounds().IntegerWidth())/2,(theScreen.Frame().IntegerHeight()-Bounds().IntegerHeight())/2);
fBgd=new BView (Bounds(),"fBgdView",0,0);
fBgd->SetHighColor(ui_color(B_MENU_BACKGROUND_COLOR));