[6/7] gdiplus: implemented GdipGetPenWidth
Nikolay Sivov
bunglehead at gmail.com
Thu Jun 26 18:27:09 CDT 2008
Changelog:
- Added GdipGetPenWidth
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pen.c | 12 +++++++++++-
include/gdiplusflat.h | 1 +
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 4a40da9..8933e66 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -367,7 +367,7 @@
@ stdcall GdipGetPenStartCap(ptr ptr)
@ stub GdipGetPenTransform
@ stdcall GdipGetPenUnit(ptr ptr)
-@ stub GdipGetPenWidth
+@ stdcall GdipGetPenWidth(ptr ptr)
@ stdcall GdipGetPixelOffsetMode(ptr ptr)
@ stdcall GdipGetPointCount(ptr ptr)
@ stub GdipGetPropertyCount
diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c
index 9ad703b..a3d697f 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -244,7 +244,17 @@ GpStatus WINGDIPAPI GdipGetPenUnit(GpPen *pen, GpUnit *unit)
*unit = pen->unit;
- return Ok;
+ return Ok;
+}
+
+GpStatus WINGDIPAPI GdipGetPenWidth(GpPen *pen, REAL *width)
+{
+ if(!pen || !width)
+ return InvalidParameter;
+
+ *width = pen->width;
+
+ return Ok;
}
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index ade1fed..2504457 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -54,6 +54,7 @@ GpStatus WINGDIPAPI GdipGetPenLineJoin(GpPen*,GpLineJoin*);
GpStatus WINGDIPAPI GdipGetPenMiterLimit(GpPen*,REAL*);
GpStatus WINGDIPAPI GdipGetPenStartCap(GpPen*,GpLineCap*);
GpStatus WINGDIPAPI GdipGetPenUnit(GpPen*,GpUnit*);
+GpStatus WINGDIPAPI GdipGetPenWidth(GpPen*,REAL*);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC,HANDLE,GpGraphics**);
--
1.4.4.4
More information about the wine-patches
mailing list