mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
gdiplus: Add stub GdipGetPathGradientPath with tests.
This commit is contained in:
parent
96d66f1666
commit
116665d7fc
@ -1019,6 +1019,18 @@ GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad,
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientPath(GpPathGradient *grad, GpPath *path)
|
||||
{
|
||||
static int calls;
|
||||
|
||||
TRACE("(%p, %p)\n", grad, path);
|
||||
|
||||
if (!(calls++))
|
||||
FIXME("not implemented\n");
|
||||
|
||||
return NotImplemented;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *grad,
|
||||
INT *count)
|
||||
{
|
||||
|
@ -316,7 +316,7 @@
|
||||
316 stdcall GdipGetPathGradientCenterPointI(ptr ptr)
|
||||
317 stdcall GdipGetPathGradientFocusScales(ptr ptr ptr)
|
||||
318 stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
|
||||
319 stub GdipGetPathGradientPath
|
||||
319 stdcall GdipGetPathGradientPath(ptr ptr)
|
||||
320 stdcall GdipGetPathGradientPointCount(ptr ptr)
|
||||
321 stdcall GdipGetPathGradientPresetBlend(ptr ptr ptr long)
|
||||
322 stdcall GdipGetPathGradientPresetBlendCount(ptr ptr)
|
||||
|
@ -824,6 +824,34 @@ static void test_gradientsurroundcolorcount(void)
|
||||
GdipDeleteBrush((GpBrush*)grad);
|
||||
}
|
||||
|
||||
static void test_pathgradientpath(void)
|
||||
{
|
||||
GpStatus status;
|
||||
GpPath *path=NULL;
|
||||
GpPathGradient *grad=NULL;
|
||||
|
||||
status = GdipCreatePathGradient(blendcount_ptf, 2, WrapModeClamp, &grad);
|
||||
expect(Ok, status);
|
||||
|
||||
status = GdipGetPathGradientPath(grad, NULL);
|
||||
expect(NotImplemented, status);
|
||||
|
||||
status = GdipCreatePath(FillModeWinding, &path);
|
||||
expect(Ok, status);
|
||||
|
||||
status = GdipGetPathGradientPath(NULL, path);
|
||||
expect(NotImplemented, status);
|
||||
|
||||
status = GdipGetPathGradientPath(grad, path);
|
||||
expect(NotImplemented, status);
|
||||
|
||||
status = GdipDeletePath(path);
|
||||
expect(Ok, status);
|
||||
|
||||
status = GdipDeleteBrush((GpBrush*)grad);
|
||||
expect(Ok, status);
|
||||
}
|
||||
|
||||
START_TEST(brush)
|
||||
{
|
||||
struct GdiplusStartupInput gdiplusStartupInput;
|
||||
@ -848,6 +876,7 @@ START_TEST(brush)
|
||||
test_lineblend();
|
||||
test_linelinearblend();
|
||||
test_gradientsurroundcolorcount();
|
||||
test_pathgradientpath();
|
||||
|
||||
GdiplusShutdown(gdiplusToken);
|
||||
}
|
||||
|
@ -554,6 +554,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientCenterPointI(GpPathGradient*,GpPoint*);
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient*,REAL*,REAL*);
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*);
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientPath(GpPathGradient*,GpPath*);
|
||||
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientPresetBlend(GpPathGradient*,
|
||||
GDIPCONST ARGB*,GDIPCONST REAL*,INT);
|
||||
|
Loading…
Reference in New Issue
Block a user