[gtk+] css: Fix radial-gradient() color stop computation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] css: Fix radial-gradient() color stop computation
- Date: Wed, 2 Nov 2016 14:25:38 +0000 (UTC)
commit 6dddf0447e4f4462c9568a1c506ee621e933990e
Author: Benjamin Otte <otte redhat com>
Date: Wed Nov 2 15:19:49 2016 +0100
css: Fix radial-gradient() color stop computation
The copy/paste from the linear gradient code had an error.
gtk/gtkcssimageradial.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssimageradial.c b/gtk/gtkcssimageradial.c
index 81967c9..4ae4344 100644
--- a/gtk/gtkcssimageradial.c
+++ b/gtk/gtkcssimageradial.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]