From 9876fc4f17e43899d9a20199cfc66f8dd4e63e68 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 6 Nov 2012 17:49:15 +0100 Subject: [PATCH] css: Fix copy/paste error Benjamin replaced start with end in a bunch of locations, but not all of them apparently. --- gtk/gtkcssimagegradient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkcssimagegradient.c b/gtk/gtkcssimagegradient.c index a2417337b6..40ee17f508 100644 --- a/gtk/gtkcssimagegradient.c +++ b/gtk/gtkcssimagegradient.c @@ -102,7 +102,7 @@ transition_pattern (cairo_pattern_t *start, { case CAIRO_PATTERN_TYPE_LINEAR: cairo_pattern_get_linear_points (start, &sx0, &sy0, &sx1, &sy1); - cairo_pattern_get_linear_points (start, &ex0, &ey0, &ex1, &ey1); + cairo_pattern_get_linear_points (end, &ex0, &ey0, &ex1, &ey1); result = cairo_pattern_create_linear ((1 - progress) * sx0 + progress * ex0, (1 - progress) * sx1 + progress * ex1, (1 - progress) * sy0 + progress * ey0, @@ -110,7 +110,7 @@ transition_pattern (cairo_pattern_t *start, break; case CAIRO_PATTERN_TYPE_RADIAL: cairo_pattern_get_radial_circles (start, &sx0, &sy0, &sr0, &sx1, &sy1, &sr1); - cairo_pattern_get_radial_circles (start, &ex0, &ey0, &er0, &ex1, &ey1, &er1); + cairo_pattern_get_radial_circles (end, &ex0, &ey0, &er0, &ex1, &ey1, &er1); result = cairo_pattern_create_radial ((1 - progress) * sx0 + progress * ex0, (1 - progress) * sy0 + progress * ey0, (1 - progress) * sr0 + progress * er0, @@ -128,7 +128,7 @@ transition_pattern (cairo_pattern_t *start, double so, sr, sg, sb, sa, eo, er, eg, eb, ea; cairo_pattern_get_color_stop_rgba (start, i, &so, &sr, &sg, &sb, &sa); - cairo_pattern_get_color_stop_rgba (start, i, &eo, &er, &eg, &eb, &ea); + cairo_pattern_get_color_stop_rgba (end, i, &eo, &er, &eg, &eb, &ea); cairo_pattern_add_color_stop_rgba (result, (1 - progress) * so + progress * eo,