From 8ecf0b8b09ed21fb0649526c02980762140b4255 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Wed, 13 Oct 2010 05:40:45 +0000 Subject: [PATCH] Change the semantic of the SetSame*As function. I think its easier to understand now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38959 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/alm/Area.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libs/alm/Area.cpp b/src/libs/alm/Area.cpp index d23eff31ca..ab5a35684e 100644 --- a/src/libs/alm/Area.cpp +++ b/src/libs/alm/Area.cpp @@ -498,8 +498,8 @@ Area::GetString(BString& string) const /*! - * Sets the width of the area times factor to be the same as the width of the - * given area. + * Sets the width of the area to be the same as the width of the given area + * times factor. * * @param area the area that should have the same width * @return the same-width constraint @@ -507,14 +507,14 @@ Area::GetString(BString& string) const Constraint* Area::SetWidthAs(Area* area, float factor) { - return fLS->AddConstraint(-factor, fLeft, factor, fRight, 1.0, area->Left(), - -1.0, area->Right(), OperatorType(EQ), 0.0); + return fLS->AddConstraint(-1.0, fLeft, 1.0, fRight, factor, area->Left(), + -factor, area->Right(), OperatorType(EQ), 0.0); } /*! - * Sets the height of the area times factor to be the same as the height of the - * given area. + * Sets the height of the area to be the same as the height of the given area + * times factor. * * @param area the area that should have the same height * @return the same-height constraint @@ -522,8 +522,8 @@ Area::SetWidthAs(Area* area, float factor) Constraint* Area::SetHeightAs(Area* area, float factor) { - return fLS->AddConstraint(-factor, fTop, factor, fBottom, 1.0, area->Top(), - -1.0, area->Bottom(), OperatorType(EQ), 0.0); + return fLS->AddConstraint(-1.0, fTop, 1.0, fBottom, factor, area->Top(), + -factor, area->Bottom(), OperatorType(EQ), 0.0); }