Nikolay Sivov : gdiplus: Implemented GdipGetPenWidth.
Alexandre Julliard
julliard at winehq.org
Fri Jun 27 07:42:00 CDT 2008
Module: wine
Branch: master
Commit: 314396ae9cc853a111c9fb37c4def0af50308412
URL: http://source.winehq.org/git/wine.git/?a=commit;h=314396ae9cc853a111c9fb37c4def0af50308412
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri Jun 27 03:27:09 2008 +0400
gdiplus: Implemented GdipGetPenWidth.
---
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 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 00729db..a3d697f 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -247,6 +247,16 @@ GpStatus WINGDIPAPI GdipGetPenUnit(GpPen *pen, GpUnit *unit)
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)
{
if(!pen || !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**);
More information about the wine-cvs
mailing list