fixed screen positioning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14215 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <Alert.h>
|
||||
#include <Screen.h>
|
||||
#include <TextView.h>
|
||||
#include "InstallerApp.h"
|
||||
|
||||
@@ -20,7 +21,9 @@ InstallerApp::InstallerApp()
|
||||
: BApplication(APP_SIG)
|
||||
{
|
||||
BRect windowFrame(0,0,332,160);
|
||||
windowFrame.OffsetBy(154,87);
|
||||
BRect frame = BScreen().Frame();
|
||||
windowFrame.OffsetBy((frame.Width() - windowFrame.Width())/2,
|
||||
frame.Height()/2 - windowFrame.Height()/4 - 113);
|
||||
fWindow = new InstallerWindow(windowFrame);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user