Module: wine Branch: master Commit: 937432ac176d39d37429017296192d27ba9d7f64 URL: http://source.winehq.org/git/wine.git/?a=commit;h=937432ac176d39d37429017296...
Author: Evan Stade estade@gmail.com Date: Thu Jul 19 18:23:13 2007 -0700
gdiplus: Added GdipSetPenStartCap.
---
dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/pen.c | 11 +++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index a0f57af..66f4de2 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -555,7 +555,7 @@ @ stdcall GdipSetPenLineJoin(ptr long) @ stdcall GdipSetPenMiterLimit(ptr long) @ stub GdipSetPenMode -@ stub GdipSetPenStartCap +@ stdcall GdipSetPenStartCap(ptr long) @ stub GdipSetPenTransform @ stub GdipSetPenUnit @ stub GdipSetPenWidth diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index 7b14595..c003076 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -248,3 +248,14 @@ GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen *pen, REAL limit)
return Ok; } + +GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen *pen, GpLineCap cap) +{ + if(!pen) return InvalidParameter; + + GdipDeleteCustomLineCap(pen->customstart); + pen->customstart = NULL; + pen->startcap = cap; + + return Ok; +} diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index d181825..31d973b 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -38,6 +38,7 @@ GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen*,GpLineCap); GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen*,GpLineCap,GpLineCap,GpDashCap); GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin); GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL); +GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);