BRect: Style fixes, take out extra space.

For some reason there was an extra space here, has been since first import.
This commit is contained in:
John Scipione
2015-03-16 20:19:51 -04:00
parent 776dbb038f
commit 70adf6d5d3
+24 -24
View File
@@ -50,20 +50,20 @@ BRect::SetRightTop(const BPoint point)
void void
BRect::InsetBy(BPoint point) BRect::InsetBy(BPoint point)
{ {
left += point.x; left += point.x;
right -= point.x; right -= point.x;
top += point.y; top += point.y;
bottom -= point.y; bottom -= point.y;
} }
void void
BRect::InsetBy(float dx, float dy) BRect::InsetBy(float dx, float dy)
{ {
left += dx; left += dx;
right -= dx; right -= dx;
top += dy; top += dy;
bottom -= dy; bottom -= dy;
} }
@@ -104,20 +104,20 @@ BRect::InsetByCopy(float dx, float dy) const
void void
BRect::OffsetBy(BPoint point) BRect::OffsetBy(BPoint point)
{ {
left += point.x; left += point.x;
right += point.x; right += point.x;
top += point.y; top += point.y;
bottom += point.y; bottom += point.y;
} }
void void
BRect::OffsetBy(float dx, float dy) BRect::OffsetBy(float dx, float dy)
{ {
left += dx; left += dx;
right += dx; right += dx;
top += dy; top += dy;
bottom += dy; bottom += dy;
} }
@@ -158,20 +158,20 @@ BRect::OffsetByCopy(float dx, float dy) const
void void
BRect::OffsetTo(BPoint point) BRect::OffsetTo(BPoint point)
{ {
right = (right - left) + point.x; right = (right - left) + point.x;
left = point.x; left = point.x;
bottom = (bottom - top) + point.y; bottom = (bottom - top) + point.y;
top = point.y; top = point.y;
} }
void void
BRect::OffsetTo(float x, float y) BRect::OffsetTo(float x, float y)
{ {
right = (right - left) + x; right = (right - left) + x;
left = x; left = x;
bottom = (bottom - top) + y; bottom = (bottom - top) + y;
top=y; top=y;
} }