mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
gdiplus: Updated brush cloner/deleter.
This commit is contained in:
parent
369dc8caba
commit
ec3049168c
@ -70,6 +70,14 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
|
||||
|
||||
break;
|
||||
}
|
||||
case BrushTypeLinearGradient:
|
||||
*clone = GdipAlloc(sizeof(GpLineGradient));
|
||||
if(!*clone) return OutOfMemory;
|
||||
|
||||
memcpy(*clone, brush, sizeof(GpLineGradient));
|
||||
|
||||
(*clone)->gdibrush = CreateSolidBrush((*clone)->lb.lbColor);
|
||||
break;
|
||||
default:
|
||||
return NotImplemented;
|
||||
}
|
||||
@ -237,6 +245,7 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
|
||||
GdipFree(((GpPathGradient*) brush)->pathdata.Types);
|
||||
break;
|
||||
case BrushTypeSolidColor:
|
||||
case BrushTypeLinearGradient:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user