Commit e933da4f authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Copy hatch brushes using the create function.

The DIB used in the LOGBRUSH doesn't last long enough.
parent 1aa3308f
......@@ -60,13 +60,11 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
break;
}
case BrushTypeHatchFill:
*clone = GdipAlloc(sizeof(GpHatch));
if (!*clone) return OutOfMemory;
memcpy(*clone, brush, sizeof(GpHatch));
{
GpHatch *hatch = (GpHatch*)brush;
(*clone)->gdibrush = CreateBrushIndirect(&(*clone)->lb);
break;
return GdipCreateHatchBrush(hatch->hatchstyle, hatch->forecol, hatch->backcol, (GpHatch**)clone);
}
case BrushTypePathGradient:{
GpPathGradient *src, *dest;
INT count;
......
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