@@ -31,7 +31,7 @@ void brush::conical_gradient(intptr brush, int32 center_x, int32 center_y, const
3131 wxGraphicsGradientStops colours (wxColour (start_r, start_g, start_b, start_a), wxColour (end_r, end_g, end_b, end_a));
3232 for (auto [r, g, b, a, pos] : colors)
3333 colours.Add (wxColour (r, g, b, a), pos);
34-
34+
3535 reinterpret_cast <wx_brush*>(brush)->create_conical_gradiant_brush (center_point, colours, angle);
3636}
3737
@@ -55,7 +55,7 @@ void brush::linear_gradient(intptr brush, int32 x1, int32 y1, int32 x2, int32 y2
5555 wxGraphicsGradientStops colours (wxColour (start_r, start_g, start_b, start_a), wxColour (end_r, end_g, end_b, end_a));
5656 for (auto [r, g, b, a, pos] : colors)
5757 colours.Add (wxColour (r, g, b, a), pos);
58-
58+
5959 if (angle == 0 || angle == 180 ) p2.y = p1.y ;
6060 if (angle == 90 || angle == 270 ) p2.x = p1.x ;
6161 if (angle == 135 || angle == 315 ) std::swap (p1.x , p2.x );
@@ -74,7 +74,7 @@ void brush::radial_gradient(intptr brush, int32 center_x, int32 center_y, int32
7474 wxGraphicsGradientStops colours (wxColour (start_r, start_g, start_b, start_a), wxColour (end_r, end_g, end_b, end_a));
7575 for (auto [r, g, b, a, pos] : colors)
7676 colours.Add (wxColour (r, g, b, a), pos);
77-
77+
7878 reinterpret_cast <wx_brush*>(brush)->create_radial_gradiant_brush (center_point, focal_point, colours, radius);
7979}
8080
0 commit comments