Commit 7a9f6abd authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Test SetSurroundColors with fewer colors than points on the path.

parent a58249cd
......@@ -866,6 +866,16 @@ static void test_gradientsurroundcolorcount(void)
todo_wine expect(0x0000ff00, color[1]);
expect(0xdeadbeef, color[2]);
count = 1;
status = GdipSetPathGradientSurroundColorsWithCount(grad, color, &count);
todo_wine expect(Ok, status);
expect(1, count);
count = 0;
status = GdipSetPathGradientSurroundColorsWithCount(grad, color, &count);
todo_wine expect(InvalidParameter, status);
expect(0, count);
GdipDeleteBrush((GpBrush*)grad);
status = GdipCreatePathGradient(getbounds_ptf, 3, WrapModeClamp, &grad);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment