From f8253e50bdd00964267edb6e9e774dd2d7a16917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 16 Jun 2006 14:38:10 +0000 Subject: [PATCH] * Fixed wrong resizing mode. * Fixed center on screen algorithm for multi-screen scenarios. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17859 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/virtualmemory/SettingsWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/preferences/virtualmemory/SettingsWindow.cpp b/src/preferences/virtualmemory/SettingsWindow.cpp index 99d0d5bce8..d90e6e0b6c 100644 --- a/src/preferences/virtualmemory/SettingsWindow.cpp +++ b/src/preferences/virtualmemory/SettingsWindow.cpp @@ -134,7 +134,7 @@ SettingsWindow::SettingsWindow() BString string = "Physical Memory: "; string << byte_string((off_t)info.max_pages * B_PAGE_SIZE); BStringView* stringView = new BStringView(rect, "physical memory", string.String(), - B_FOLLOW_ALL); + B_FOLLOW_NONE); stringView->ResizeToPreferred(); box->AddChild(stringView); @@ -142,7 +142,7 @@ SettingsWindow::SettingsWindow() string = "Current Swap File Size: "; string << byte_string(fSettings.SwapSize()); stringView = new BStringView(rect, "current swap size", string.String(), - B_FOLLOW_ALL); + B_FOLLOW_NONE); stringView->ResizeToPreferred(); box->AddChild(stringView); @@ -224,8 +224,8 @@ SettingsWindow::SettingsWindow() if (!screenFrame.Contains(fSettings.WindowPosition())) { // move on screen, centered - MoveTo((screenFrame.Width() - Bounds().Width()) / 2, - (screenFrame.Height() - Bounds().Height()) / 2); + MoveTo(screenFrame.left + (screenFrame.Width() - Bounds().Width()) / 2, + screenFrame.top + (screenFrame.Height() - Bounds().Height()) / 2); } else MoveTo(fSettings.WindowPosition()); }