Module: wine Branch: master Commit: d59fe31e8b498fbe540bd101143e5bac985709a9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d59fe31e8b498fbe540bd10114...
Author: Evan Stade estade@gmail.com Date: Mon Jul 16 19:44:58 2007 -0700
gdiplus: Added GdipSetPenMiterLimit.
---
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 aaabdf5..5f5b3b9 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -553,7 +553,7 @@ @ stdcall GdipSetPenEndCap(ptr long) @ stdcall GdipSetPenLineCap197819(ptr long long long) @ stdcall GdipSetPenLineJoin(ptr long) -@ stub GdipSetPenMiterLimit +@ stdcall GdipSetPenMiterLimit(ptr long) @ stub GdipSetPenMode @ stub GdipSetPenStartCap @ stub GdipSetPenTransform diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index 3bebc35..1b37e13 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -135,3 +135,13 @@ GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen *pen, GpLineJoin join)
return Ok; } + +GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen *pen, REAL limit) +{ + if(!pen) + return InvalidParameter; + + pen->miterlimit = limit; + + return Ok; +} diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 3ac4b3e..ffb6007 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -32,6 +32,7 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen*); GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen*,GpLineCap); GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen*,GpLineCap,GpLineCap,GpDashCap); GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin); +GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);