From 8b7c3f785c06ceaebcaca70bec00f1ce5124e33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 20 Sep 2005 18:37:19 +0000 Subject: [PATCH] fixed screen positioning git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14215 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/InstallerApp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/installer/InstallerApp.cpp b/src/apps/installer/InstallerApp.cpp index 423dac9140..50aed23003 100644 --- a/src/apps/installer/InstallerApp.cpp +++ b/src/apps/installer/InstallerApp.cpp @@ -4,6 +4,7 @@ */ #include +#include #include #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); }