mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
rendernodes: Enfore end > start for radial gradient nodes
This commit is contained in:
parent
a770ab34c4
commit
5d5fbc69a4
@ -510,6 +510,7 @@ gsk_radial_gradient_node_new (const graphene_rect_t *bounds,
|
||||
g_return_val_if_fail (vradius > 0., NULL);
|
||||
g_return_val_if_fail (start >= 0., NULL);
|
||||
g_return_val_if_fail (end >= 0., NULL);
|
||||
g_return_val_if_fail (end > start, NULL);
|
||||
g_return_val_if_fail (color_stops != NULL, NULL);
|
||||
g_return_val_if_fail (n_color_stops >= 2, NULL);
|
||||
g_return_val_if_fail (color_stops[0].offset >= 0, NULL);
|
||||
@ -555,6 +556,7 @@ gsk_repeating_radial_gradient_node_new (const graphene_rect_t *bounds,
|
||||
g_return_val_if_fail (vradius > 0., NULL);
|
||||
g_return_val_if_fail (start >= 0., NULL);
|
||||
g_return_val_if_fail (end >= 0., NULL);
|
||||
g_return_val_if_fail (end > start, NULL);
|
||||
g_return_val_if_fail (color_stops != NULL, NULL);
|
||||
g_return_val_if_fail (n_color_stops >= 2, NULL);
|
||||
g_return_val_if_fail (color_stops[0].offset >= 0, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user