Nikolay Sivov : gdiplus: Implemented GdipSetLineColors.
Alexandre Julliard
julliard at winehq.org
Thu Apr 24 15:56:53 CDT 2008
Module: wine
Branch: master
Commit: 59ef3c920d2eb0f43d28387b78cf73c31aed3bff
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59ef3c920d2eb0f43d28387b78cf73c31aed3bff
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Thu Apr 24 22:43:41 2008 +0400
gdiplus: Implemented GdipSetLineColors.
---
dlls/gdiplus/brush.c | 9 +++++----
include/gdiplusflat.h | 1 +
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index d2097eb..727d12d 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -675,12 +675,13 @@ GpStatus WINGDIPAPI GdipSetTextureTransform(GpTexture *texture,
GpStatus WINGDIPAPI GdipSetLineColors(GpLineGradient *brush, ARGB color1,
ARGB color2)
{
- static int calls;
+ if(!brush)
+ return InvalidParameter;
- if(!(calls++))
- FIXME("not implemented\n");
+ brush->startcolor = color1;
+ brush->endcolor = color2;
- return NotImplemented;
+ return Ok;
}
GpStatus WINGDIPAPI GdipGetLineColors(GpLineGradient *brush, ARGB *colors)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index c369377..366e8a5 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -175,6 +175,7 @@ GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient*,GDIPCONST REAL*,
GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient*,BOOL);
GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient*,REAL,REAL);
GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
+GpStatus WINGDIPAPI GdipSetLineColors(GpLineGradient*,ARGB,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);
More information about the wine-cvs
mailing list