Evan Stade : gdiplus: Added GdipGetPenColor stub.

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


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

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

gdiplus: Added GdipGetPenColor stub.

---

 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 4fa3d89..9c7abb3 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -333,7 +333,7 @@
 @ stdcall GdipGetPathWorldBounds(ptr ptr ptr ptr)
 @ stub GdipGetPathWorldBoundsI
 @ stub GdipGetPenBrushFill
-@ stub GdipGetPenColor
+@ stdcall GdipGetPenColor(ptr ptr)
 @ stub GdipGetPenCompoundArray
 @ stub GdipGetPenCompoundCount
 @ stub GdipGetPenCustomEndCap
diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c
index 8817c1b..d52ef1e 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -134,6 +134,14 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipGetPenColor(GpPen *pen, ARGB *argb)
+{
+    if(!pen || !argb)
+        return InvalidParameter;
+
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash)
 {
     if(!pen || !dash)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 63a3873..1dfbe51 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 GdipGetPenColor(GpPen*,ARGB*);
 GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen*,GpDashStyle*);
 GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen*,GpBrush*);
 GpStatus WINGDIPAPI GdipSetPenCustomEndCap(GpPen*,GpCustomLineCap*);




More information about the wine-cvs mailing list