Nikolay Sivov : gdiplus: Implemented GdipGetPathGradientCenterPointI.
Alexandre Julliard
julliard at winehq.org
Tue Apr 29 08:54:40 CDT 2008
Module: wine
Branch: master
Commit: 9cce789881caddb67be8dede18adbe854af16950
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9cce789881caddb67be8dede18adbe854af16950
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue Apr 29 00:10:25 2008 +0400
gdiplus: Implemented GdipGetPathGradientCenterPointI.
---
dlls/gdiplus/brush.c | 19 +++++++++++++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
include/gdiplusflat.h | 1 +
3 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 5d0a1de..31c7cf1 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -488,6 +488,25 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad,
return Ok;
}
+GpStatus WINGDIPAPI GdipGetPathGradientCenterPointI(GpPathGradient *grad,
+ GpPoint *point)
+{
+ GpStatus ret;
+ GpPointF ptf;
+
+ if(!point)
+ return InvalidParameter;
+
+ ret = GdipGetPathGradientCenterPoint(grad,&ptf);
+
+ if(ret == Ok){
+ point->X = roundr(ptf.X);
+ point->Y = roundr(ptf.Y);
+ }
+
+ return ret;
+}
+
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient *grad,
REAL *x, REAL *y)
{
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index c06fa2e..8e8e94f 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -329,7 +329,7 @@
@ stub GdipGetPathGradientBlendCount
@ stub GdipGetPathGradientCenterColor
@ stdcall GdipGetPathGradientCenterPoint(ptr ptr)
-@ stub GdipGetPathGradientCenterPointI
+@ stdcall GdipGetPathGradientCenterPointI(ptr ptr)
@ stdcall GdipGetPathGradientFocusScales(ptr ptr ptr)
@ stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
@ stub GdipGetPathGradientPath
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index dbf1c85..49464d8 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -169,6 +169,7 @@ GpStatus WINGDIPAPI GdipGetLineRectI(GpLineGradient*,GpRect*);
GpStatus WINGDIPAPI GdipGetLineColors(GpLineGradient*,ARGB*);
GpStatus WINGDIPAPI GdipGetPathGradientCenterColor(GpPathGradient*,ARGB*);
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
+GpStatus WINGDIPAPI GdipGetPathGradientCenterPointI(GpPathGradient*,GpPoint*);
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient*,REAL*,REAL*);
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*);
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
More information about the wine-cvs
mailing list