[3/9] gdiplus: added GdipSetPenMiterLimit

Evan Stade estade at gmail.com
Mon Jul 16 21:44:58 CDT 2007


Hi,

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/pen.c        |   10 ++++++++++
 include/gdiplusflat.h     |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
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(G
 
     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**);
-- 
1.4.1


More information about the wine-patches mailing list