Resolved a TODO

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2005-11-01 23:47:28 +00:00
parent 73eca7babf
commit ef5fcc0637
+26 -5
View File
@@ -243,13 +243,34 @@ void
BBox::FrameResized(float width, float height)
{
BRect bounds(Bounds());
// TODO: only invalidate the part that really need redrawing!
BRect r;
if(fBounds.right < bounds.right)
{
r.left = fBounds.right;
r.top = 0;
r.right = bounds.right;
if(fBounds.bottom < bounds.bottom)
r.bottom = bounds.bottom;
else
r.bottom = fBounds.bottom;
Invalidate(r);
}
if(fBounds.bottom < bounds.bottom)
{
r.left = 0;
r.top = fBounds.bottom;
r.right = bounds.right;
r.bottom = bounds.bottom;
Invalidate(r);
}
fBounds.right = bounds.right;
fBounds.bottom = bounds.bottom;
Invalidate();
}