Module: wine Branch: master Commit: f0dbfe959f9ca0e6faa8c87604525732742c64a9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f0dbfe959f9ca0e6faa8c87604...
Author: Evan Stade estade@gmail.com Date: Wed Aug 1 17:56:10 2007 -0700
gdiplus: Added GdipSetPathGradientWrapMode.
---
dlls/gdiplus/brush.c | 12 ++++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/gdiplus_private.h | 1 + include/gdiplusflat.h | 1 + include/gdiplusgpstubs.h | 1 + 5 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 912bb83..dbe221c 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -67,6 +67,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, (*grad)->brush.gdibrush = CreateSolidBrush(col); (*grad)->brush.bt = BrushTypeSolidColor; (*grad)->centercolor = 0xffffffff; + (*grad)->wrap = WrapModeClamp;
return Ok; } @@ -135,6 +136,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad, return Ok; }
+GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad, + GpWrapMode wrap) +{ + if(!grad) + return InvalidParameter; + + grad->wrap = wrap; + + return Ok; +} + GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb) { if(!sf) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index abd7e24..6b79a71 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -560,7 +560,7 @@ @ stub GdipSetPathGradientSigmaBlend @ stub GdipSetPathGradientSurroundColorsWithCount @ stub GdipSetPathGradientTransform -@ stub GdipSetPathGradientWrapMode +@ stdcall GdipSetPathGradientWrapMode(ptr long) @ stub GdipSetPathMarker @ stdcall GdipSetPenBrushFill(ptr ptr) @ stdcall GdipSetPenColor(ptr long) diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h index 1a868cf..3ce92a1 100644 --- a/dlls/gdiplus/gdiplus_private.h +++ b/dlls/gdiplus/gdiplus_private.h @@ -95,6 +95,7 @@ struct GpSolidFill{ struct GpPathGradient{ GpBrush brush; ARGB centercolor; + GpWrapMode wrap; };
struct GpPath{ diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 5e2b27a..83aea93 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*); GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB); +GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode); GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL); diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h index 6ca0073..772edd9 100644 --- a/include/gdiplusgpstubs.h +++ b/include/gdiplusgpstubs.h @@ -66,5 +66,6 @@ typedef DashCap GpDashCap; typedef DashStyle GpDashStyle; typedef MatrixOrder GpMatrixOrder; typedef Point GpPoint; +typedef WrapMode GpWrapMode;
#endif