Evan Stade : gdiplus: Added GdipGetPenBrushFill.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 24 07:06:22 CDT 2007


Module: wine
Branch: master
Commit: 37598f81e7c300cf3be10ad321c42c3244a4350f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=37598f81e7c300cf3be10ad321c42c3244a4350f

Author: Evan Stade <estade at gmail.com>
Date:   Mon Jul 23 20:24:07 2007 -0700

gdiplus: Added GdipGetPenBrushFill.

---

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

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 9c7abb3..6fec42c 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -332,7 +332,7 @@
 @ stdcall GdipGetPathTypes(ptr ptr long)
 @ stdcall GdipGetPathWorldBounds(ptr ptr ptr ptr)
 @ stub GdipGetPathWorldBoundsI
-@ stub GdipGetPenBrushFill
+@ stdcall GdipGetPenBrushFill(ptr ptr)
 @ stdcall GdipGetPenColor(ptr ptr)
 @ stub GdipGetPenCompoundArray
 @ stub GdipGetPenCompoundCount
diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c
index d52ef1e..d68df33 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -134,6 +134,14 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipGetPenBrushFill(GpPen *pen, GpBrush **brush)
+{
+    if(!pen || !brush)
+        return InvalidParameter;
+
+    return GdipCloneBrush(pen->brush, brush);
+}
+
 GpStatus WINGDIPAPI GdipGetPenColor(GpPen *pen, ARGB *argb)
 {
     if(!pen || !argb)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 1dfbe51..5f424c1 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -30,6 +30,7 @@ extern "C" {
 GpStatus WINGDIPAPI GdipClonePen(GpPen*,GpPen**);
 GpStatus WINGDIPAPI GdipCreatePen1(ARGB,REAL,GpUnit,GpPen**);
 GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
+GpStatus WINGDIPAPI GdipGetPenBrushFill(GpPen*,GpBrush**);
 GpStatus WINGDIPAPI GdipGetPenColor(GpPen*,ARGB*);
 GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen*,GpDashStyle*);
 GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen*,GpBrush*);




More information about the wine-cvs mailing list