use the current screen

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

View File

@ -182,7 +182,7 @@ void
RecorderWindow::CalcSizes(float min_wid, float min_hei)
{
// Set up size limits based on new screen size
BScreen screen;
BScreen screen(this);
BRect r = screen.Frame();
float wid = r.Width()-12;
SetSizeLimits(min_wid, wid, min_hei, r.Height()-24);