gdiplus: Copy hatch brushes using the create function.
The DIB used in the LOGBRUSH doesn't last long enough.
This commit is contained in:
parent
1aa3308fa5
commit
e933da4fdb
|
@ -60,13 +60,11 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
|
|||
break;
|
||||
}
|
||||
case BrushTypeHatchFill:
|
||||
*clone = GdipAlloc(sizeof(GpHatch));
|
||||
if (!*clone) return OutOfMemory;
|
||||
{
|
||||
GpHatch *hatch = (GpHatch*)brush;
|
||||
|
||||
memcpy(*clone, brush, sizeof(GpHatch));
|
||||
|
||||
(*clone)->gdibrush = CreateBrushIndirect(&(*clone)->lb);
|
||||
break;
|
||||
return GdipCreateHatchBrush(hatch->hatchstyle, hatch->forecol, hatch->backcol, (GpHatch**)clone);
|
||||
}
|
||||
case BrushTypePathGradient:{
|
||||
GpPathGradient *src, *dest;
|
||||
INT count;
|
||||
|
|
Loading…
Reference in New Issue