Nikolay Sivov : gdiplus: Implemented GdipSetPathGradientCenterPointI.
Alexandre Julliard
julliard at winehq.org
Wed Apr 30 06:57:25 CDT 2008
Module: wine
Branch: master
Commit: 17621fb7d53f0b5ec908fb918151e98a41aa789f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17621fb7d53f0b5ec908fb918151e98a41aa789f
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed Apr 30 01:28:45 2008 +0400
gdiplus: Implemented GdipSetPathGradientCenterPointI.
---
dlls/gdiplus/brush.c | 14 ++++++++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
include/gdiplusflat.h | 1 +
3 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 31c7cf1..aa740fc 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -642,6 +642,20 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
return Ok;
}
+GpStatus WINGDIPAPI GdipSetPathGradientCenterPointI(GpPathGradient *grad,
+ GpPoint *point)
+{
+ GpPointF ptf;
+
+ if(!point)
+ return InvalidParameter;
+
+ ptf.X = (REAL)point->X;
+ ptf.Y = (REAL)point->Y;
+
+ return GdipSetPathGradientCenterPoint(grad,&ptf);
+}
+
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient *grad,
REAL x, REAL y)
{
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 116f5f7..bfab487 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -551,7 +551,7 @@
@ stub GdipSetPathGradientBlend
@ stdcall GdipSetPathGradientCenterColor(ptr long)
@ stdcall GdipSetPathGradientCenterPoint(ptr ptr)
-@ stub GdipSetPathGradientCenterPointI
+@ stdcall GdipSetPathGradientCenterPointI(ptr ptr)
@ stdcall GdipSetPathGradientFocusScales(ptr long long)
@ stdcall GdipSetPathGradientGammaCorrection(ptr long)
@ stub GdipSetPathGradientLinearBlend
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 495c955..2cecd99 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -186,6 +186,7 @@ GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
GpStatus WINGDIPAPI GdipSetLineColors(GpLineGradient*,ARGB,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
+GpStatus WINGDIPAPI GdipSetPathGradientCenterPointI(GpPathGradient*,GpPoint*);
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient*,BOOL);
GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL);
More information about the wine-cvs
mailing list