Commit a72be4b1 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipSetPenBrushFill.

parent 7cc8b279
......@@ -541,7 +541,7 @@
@ stub GdipSetPathGradientTransform
@ stub GdipSetPathGradientWrapMode
@ stub GdipSetPathMarker
@ stub GdipSetPenBrushFill
@ stdcall GdipSetPenBrushFill(ptr ptr)
@ stub GdipSetPenColor
@ stub GdipSetPenCompoundArray
@ stdcall GdipSetPenCustomEndCap(ptr ptr)
......
......@@ -144,6 +144,25 @@ GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash)
return Ok;
}
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
{
GpStatus retval;
if(!pen || !brush)
return InvalidParameter;
GdipDeleteBrush(pen->brush);
retval = GdipCloneBrush(brush, &pen->brush);
if(retval != Ok)
return retval;
DeleteObject(pen->gdipen);
pen->gdipen = ExtCreatePen(pen->style, roundr(pen->width), &pen->brush->lb, 0,
NULL);
return Ok;
}
GpStatus WINGDIPAPI GdipSetPenCustomEndCap(GpPen *pen, GpCustomLineCap* customCap)
{
GpCustomLineCap * cap;
......
......@@ -31,6 +31,7 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen*,GpPen**);
GpStatus WINGDIPAPI GdipCreatePen1(ARGB,REAL,GpUnit,GpPen**);
GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen*,GpDashStyle*);
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen*,GpBrush*);
GpStatus WINGDIPAPI GdipSetPenCustomEndCap(GpPen*,GpCustomLineCap*);
GpStatus WINGDIPAPI GdipSetPenCustomStartCap(GpPen*,GpCustomLineCap*);
GpStatus WINGDIPAPI GdipSetPenDashStyle(GpPen*,GpDashStyle);
......
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