[5/9] gdiplus: added GdipSetPenWidth
Evan Stade
estade at gmail.com
Wed Aug 1 19:55:54 CDT 2007
Hi,
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pen.c | 9 +++++++++
include/gdiplusflat.h | 1 +
3 files changed, 11 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 0087aef..bb5c36d 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -579,7 +579,7 @@
@ stdcall GdipSetPenStartCap(ptr long)
@ stub GdipSetPenTransform
@ stub GdipSetPenUnit
-@ stub GdipSetPenWidth
+@ stdcall GdipSetPenWidth(ptr long)
@ stdcall GdipSetPixelOffsetMode(ptr long)
@ stub GdipSetPropertyItem
@ stub GdipSetRenderingOrigin
diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c
index f121380..388567a 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -341,3 +341,12 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(G
return Ok;
}
+
+GpStatus WINGDIPAPI GdipSetPenWidth(GpPen *pen, REAL width)
+{
+ if(!pen) return InvalidParameter;
+
+ pen->width = width;
+
+ return Ok;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index cd4f3d6..9756403 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -45,6 +45,7 @@ GpStatus WINGDIPAPI GdipSetPenLineCap197
GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin);
GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL);
GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap);
+GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
--
1.4.1
More information about the wine-patches
mailing list