From 2008d443a8a3bc595d861cb037155729e8fa99c2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 31 Jul 2019 17:42:58 -0700 Subject: [PATCH] Set the wrap mode for linear gradient brushes, so the areas beyond the end points are properly filled with the end point colors --- src/msw/graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index a23948588d..628cf617c9 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -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);