diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index e36e36741e..95e2eab216 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -145,7 +145,7 @@ ViewState::ViewState() origin.Set(0, 0); - line_join = B_BEVEL_JOIN; + line_join = B_MITER_JOIN; line_cap = B_BUTT_CAP; miter_limit = B_DEFAULT_MITER_LIMIT; @@ -2859,8 +2859,8 @@ BView::StrokeShape(BShape *shape, ::pattern pattern) fOwner->fLink->Attach(shape->Bounds()); fOwner->fLink->Attach(sd->opCount); fOwner->fLink->Attach(sd->ptCount); - fOwner->fLink->Attach(sd->opList, sd->opCount); - fOwner->fLink->Attach(sd->ptList, sd->ptCount); + fOwner->fLink->Attach(sd->opList, sd->opCount * sizeof(uint32)); + fOwner->fLink->Attach(sd->ptList, sd->ptCount * sizeof(BPoint)); } else { // TODO: send via an area } @@ -2885,8 +2885,8 @@ BView::FillShape(BShape *shape, ::pattern pattern) fOwner->fLink->Attach(shape->Bounds()); fOwner->fLink->Attach(sd->opCount); fOwner->fLink->Attach(sd->ptCount); - fOwner->fLink->Attach(sd->opList, sd->opCount); - fOwner->fLink->Attach(sd->ptList, sd->ptCount); + fOwner->fLink->Attach(sd->opList, sd->opCount * sizeof(int32)); + fOwner->fLink->Attach(sd->ptList, sd->ptCount * sizeof(BPoint)); } else { // TODO: send via an area // BTW, in a perfect world, the fLink API would take care of that -- axeld.