From 72b26b5956d096853f89193ee1d05041a84bdd1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 7 Nov 2005 01:07:19 +0000 Subject: [PATCH] * line join defaults to B_MITER_JOIN. The BeBook says that the line join and cap mode affect all Stroke* functions. If B_BEVEL_JOIN was indeed the default, then StrokeRect() with a pen size of > 1 would have beveled corners. * fixed sending op code and point data in Stroke/FillShape() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14726 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.