Nikolay Sivov : gdiplus: Implemented GdipGetPenEndCap.
Module: wine Branch: master Commit: 6eadf3da08fc3b358536c1c32612b148e78a6c0b URL: http://source.winehq.org/git/wine.git/?a=commit;h=6eadf3da08fc3b358536c1c326... Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Jun 27 03:26:43 2008 +0400 gdiplus: Implemented GdipGetPenEndCap. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/pen.c | 10 ++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index ad79d0c..e76b9e1 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -359,7 +359,7 @@ @ stub GdipGetPenDashCount @ stdcall GdipGetPenDashOffset(ptr ptr) @ stdcall GdipGetPenDashStyle(ptr ptr) -@ stub GdipGetPenEndCap +@ stdcall GdipGetPenEndCap(ptr ptr) @ stub GdipGetPenFillType @ stub GdipGetPenLineJoin @ stub GdipGetPenMiterLimit diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index f6214f1..29d99d5 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -197,6 +197,16 @@ GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash) return Ok; } +GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen *pen, GpLineCap *endCap) +{ + if(!pen || !endCap) + return InvalidParameter; + + *endCap = pen->endcap; + + return Ok; +} + GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush) { if(!pen || !brush) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 87c9398..e78ff07 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -49,6 +49,7 @@ GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin); GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL); GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap); GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL); +GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen*,GpLineCap*); GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC,HANDLE,GpGraphics**);
participants (1)
-
Alexandre Julliard