[3/11] gdiplus: added GdipS/GetPathGradientSurroundColorsWithCount
stubs
Evan Stade
estade at gmail.com
Thu Aug 2 19:51:58 CDT 2007
Hi,
dlls/gdiplus/brush.c | 29 +++++++++++++++++++++++++++++
dlls/gdiplus/gdiplus.spec | 4 ++--
include/gdiplusflat.h | 4 ++++
3 files changed, 35 insertions(+), 2 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 2bdeb89..3994771 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -177,6 +177,20 @@ GpStatus WINGDIPAPI GdipGetPathGradientP
return Ok;
}
+GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient
+ *grad, ARGB *argb, INT *count)
+{
+ static int calls;
+
+ if(!grad || !argb || !count || (*count < grad->pathdata.Count))
+ return InvalidParameter;
+
+ if(!(calls++))
+ FIXME("not implemented\n");
+
+ return NotImplemented;
+}
+
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb)
{
if(!sf || !argb)
@@ -202,6 +216,21 @@ GpStatus WINGDIPAPI GdipSetPathGradientC
return Ok;
}
+GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient
+ *grad, ARGB *argb, INT *count)
+{
+ static int calls;
+
+ if(!grad || !argb || !count || (*count <= 0) ||
+ (*count > grad->pathdata.Count))
+ return InvalidParameter;
+
+ if(!(calls++))
+ FIXME("not implemented\n");
+
+ return NotImplemented;
+}
+
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad,
GpWrapMode wrap)
{
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index e6af5f3..63a30a3 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -339,7 +339,7 @@
@ stub GdipGetPathGradientRect
@ stub GdipGetPathGradientRectI
@ stub GdipGetPathGradientSurroundColorCount
-@ stub GdipGetPathGradientSurroundColorsWithCount
+@ stdcall GdipGetPathGradientSurroundColorsWithCount(ptr ptr ptr)
@ stub GdipGetPathGradientTransform
@ stub GdipGetPathGradientWrapMode
@ stub GdipGetPathLastPoint
@@ -558,7 +558,7 @@
@ stub GdipSetPathGradientPath
@ stub GdipSetPathGradientPresetBlend
@ stub GdipSetPathGradientSigmaBlend
-@ stub GdipSetPathGradientSurroundColorsWithCount
+@ stdcall GdipSetPathGradientSurroundColorsWithCount(ptr ptr ptr)
@ stub GdipSetPathGradientTransform
@ stdcall GdipSetPathGradientWrapMode(ptr long)
@ stub GdipSetPathMarker
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index fab9e0e..60115a4 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -95,9 +95,13 @@ GpStatus WINGDIPAPI GdipCreatePathGradie
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
+GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
+ ARGB*,INT*);
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
+GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
+ ARGB*,INT*);
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
--
1.4.1
More information about the wine-patches
mailing list