[13/19] gdiplus: fixed bug drawing custom caps
Evan Stade
estade at gmail.com
Tue Aug 7 20:42:44 CDT 2007
Hi,
Commit 7f0aa3af7c945a8e538e12eca2b631a44c9c3d06 (gdiplus: Use custom
cap base inset differently) introduced 3 typos (or, 1 typo + 2
copy-paste mistakes).
dlls/gdiplus/graphics.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 3afdab2..0059cc3 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -488,7 +488,7 @@ static GpStatus draw_polyline(GpGraphics
else if((pen->startcap == LineCapCustom) && pen->customstart)
shorten_line_amt(ptcopy[1].X, ptcopy[1].Y,
&ptcopy[0].X, &ptcopy[0].Y,
- pen->customend->inset * pen->width);
+ pen->customstart->inset * pen->width);
draw_cap(graphics, pen->brush->lb.lbColor, pen->endcap, pen->width, pen->customend,
pt[count - 2].X, pt[count - 2].Y, pt[count - 1].X, pt[count - 1].Y);
@@ -582,7 +582,7 @@ static GpStatus draw_polybezier(GpGraphi
if(pen->startcap == LineCapArrowAnchor)
shorten_bezier_amt(ptcopy, pen->width, TRUE);
else if((pen->startcap == LineCapCustom) && pen->customstart)
- shorten_bezier_amt(ptcopy, pen->width * pen->customend->inset, TRUE);
+ shorten_bezier_amt(ptcopy, pen->width * pen->customstart->inset, TRUE);
/* the direction of the line cap is parallel to the direction at the
* end of the bezier (which, if it has been shortened, is not the same
@@ -689,7 +689,7 @@ static GpStatus draw_poly(GpGraphics *gr
shorten_bezier_amt(&ptcopy[j - 1], pen->width, TRUE);
else if((pen->startcap == LineCapCustom) && pen->customstart)
shorten_bezier_amt(&ptcopy[j - 1],
- pen->width * pen->customend->inset, TRUE);
+ pen->width * pen->customstart->inset, TRUE);
draw_cap(graphics, pen->brush->lb.lbColor, pen->startcap, pen->width, pen->customstart,
pt[j - 1].X - (ptcopy[j - 1].X - ptcopy[j].X),
--
1.4.1
More information about the wine-patches
mailing list