the new clipping code uses the same mechanism for updating frame/bounds, so we don't need some things anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14559 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -561,11 +561,7 @@ BRect
|
|||||||
BView::Bounds() const
|
BView::Bounds() const
|
||||||
{
|
{
|
||||||
// do we need to update our bounds?
|
// do we need to update our bounds?
|
||||||
if (
|
if (!fState->IsValid(B_VIEW_FRAME_BIT) && fOwner) {
|
||||||
#if 1 // 0 to make the new clipping code work
|
|
||||||
!fState->IsValid(B_VIEW_FRAME_BIT) &&
|
|
||||||
#endif
|
|
||||||
fOwner) {
|
|
||||||
check_lock();
|
check_lock();
|
||||||
|
|
||||||
fOwner->fLink->StartMessage(AS_LAYER_GET_COORD);
|
fOwner->fLink->StartMessage(AS_LAYER_GET_COORD);
|
||||||
|
|||||||
@@ -811,7 +811,7 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
fLink->Flush();
|
fLink->Flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#if 1 // 0 to make the new clipping code work
|
|
||||||
case B_VIEW_RESIZED:
|
case B_VIEW_RESIZED:
|
||||||
case B_VIEW_MOVED:
|
case B_VIEW_MOVED:
|
||||||
{
|
{
|
||||||
@@ -863,40 +863,7 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
case B_VIEW_MOVED:
|
|
||||||
{
|
|
||||||
BPoint where;
|
|
||||||
|
|
||||||
msg->FindPoint("where", &where);
|
|
||||||
|
|
||||||
if (target && target != this && dynamic_cast<BView*>(target))
|
|
||||||
{
|
|
||||||
STRACE(("Calling BView(%s)::FrameMoved( %f, %f )\n", target->Name(), where.x, where.y));
|
|
||||||
((BView*)target)->FrameMoved(where);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case B_VIEW_RESIZED:
|
|
||||||
{
|
|
||||||
float newWidth,
|
|
||||||
newHeight;
|
|
||||||
BPoint where;
|
|
||||||
|
|
||||||
msg->FindFloat("width", &newWidth);
|
|
||||||
msg->FindFloat("height", &newHeight);
|
|
||||||
msg->FindPoint("where", &where);
|
|
||||||
|
|
||||||
if (target && target != this && dynamic_cast<BView*>(target)){
|
|
||||||
STRACE(("Calling BView(%s)::FrameResized( %f, %f )\n", target->Name(), newWidth, newHeight));
|
|
||||||
((BView*)target)->FrameResized(newWidth, newHeight);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
case _MENUS_DONE_:
|
case _MENUS_DONE_:
|
||||||
MenusEnded();
|
MenusEnded();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user