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) ...@@ -60,13 +60,11 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
break; break;
} }
case BrushTypeHatchFill: case BrushTypeHatchFill:
*clone = GdipAlloc(sizeof(GpHatch)); {
if (!*clone) return OutOfMemory; GpHatch *hatch = (GpHatch*)brush;
memcpy(*clone, brush, sizeof(GpHatch));
(*clone)->gdibrush = CreateBrushIndirect(&(*clone)->lb); return GdipCreateHatchBrush(hatch->hatchstyle, hatch->forecol, hatch->backcol, (GpHatch**)clone);
break; }
case BrushTypePathGradient:{ case BrushTypePathGradient:{
GpPathGradient *src, *dest; GpPathGradient *src, *dest;
INT count; 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