Set the wrap mode for linear gradient brushes,

so the areas beyond the end points are properly filled with the end point colors
This commit is contained in:
Robin Dunn
2019-07-31 17:42:58 -07:00
parent d6060db6f1
commit 2008d443a8

View File

@@ -974,6 +974,7 @@ wxGDIPlusBrushData::CreateLinearGradientBrush(wxDouble x1, wxDouble y1,
brush = new LinearGradientBrush(PointF(x1, y1) , PointF(x2, y2),
wxColourToColor(stops.GetStartColour()),
wxColourToColor(stops.GetEndColour()));
brush->SetWrapMode(WrapModeTileFlipXY);
m_brush = brush;
SetGradientStops(brush, stops);