Resolved a TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -243,13 +243,34 @@ void
|
|||||||
BBox::FrameResized(float width, float height)
|
BBox::FrameResized(float width, float height)
|
||||||
{
|
{
|
||||||
BRect bounds(Bounds());
|
BRect bounds(Bounds());
|
||||||
|
BRect r;
|
||||||
// TODO: only invalidate the part that really need redrawing!
|
|
||||||
|
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.right = bounds.right;
|
||||||
fBounds.bottom = bounds.bottom;
|
fBounds.bottom = bounds.bottom;
|
||||||
|
|
||||||
Invalidate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user