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:
@@ -182,7 +182,7 @@ void
|
|||||||
RecorderWindow::CalcSizes(float min_wid, float min_hei)
|
RecorderWindow::CalcSizes(float min_wid, float min_hei)
|
||||||
{
|
{
|
||||||
// Set up size limits based on new screen size
|
// Set up size limits based on new screen size
|
||||||
BScreen screen;
|
BScreen screen(this);
|
||||||
BRect r = screen.Frame();
|
BRect r = screen.Frame();
|
||||||
float wid = r.Width()-12;
|
float wid = r.Width()-12;
|
||||||
SetSizeLimits(min_wid, wid, min_hei, r.Height()-24);
|
SetSizeLimits(min_wid, wid, min_hei, r.Height()-24);
|
||||||
|
|||||||
Reference in New Issue
Block a user