forked from AuroraMiddleware/gtk
css: Fix radial-gradient() color stop computation
The copy/paste from the linear gradient code had an error.
This commit is contained in:
parent
2d7df8e66a
commit
6dddf0447e
@ -197,7 +197,7 @@ gtk_css_image_radial_draw (GtkCssImage *image,
|
||||
pos = _gtk_css_number_value_get (stop->offset, radius) / radius;
|
||||
|
||||
pos = MAX (pos, 0);
|
||||
step = pos / (i - last);
|
||||
step = (pos - offset) / (i - last);
|
||||
for (last = last + 1; last <= i; last++)
|
||||
{
|
||||
const GdkRGBA *rgba;
|
||||
|
Loading…
Reference in New Issue
Block a user