fixed screen positioning

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14215 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-09-20 18:37:19 +00:00
parent 599406aaea
commit 8b7c3f785c
+4 -1
View File
@@ -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);
}