Mercurial > MadButterfly
diff src/redraw_man.c @ 881:a17c4e231e54 abs_n_rel_center
Transform positions of radient paints.
cx, cy of radial and x1, y1, x2, y2 of linear gradient paints must be
transformed with aggregated matrix of painted shapes. Pattern to user
space transformation maybe used to get more precise color.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 25 Sep 2010 20:12:45 +0800 |
parents | 881efcd8a18f |
children | 8a2d676d9fa3 |
line wrap: on
line diff
--- a/src/redraw_man.c Sat Sep 25 18:46:37 2010 +0800 +++ b/src/redraw_man.c Sat Sep 25 20:12:45 2010 +0800 @@ -2168,7 +2168,7 @@ fill = shape->fill; if(shape->fill) { - fill->prepare(fill, cr); + fill->prepare(fill, cr, shape); if(shape->stroke) fill_path_preserve(rdman, cr); else @@ -2177,7 +2177,7 @@ stroke = shape->stroke; if(stroke) { - stroke->prepare(stroke, cr); + stroke->prepare(stroke, cr, shape); set_shape_stroke_param(shape, cr); stroke_path(rdman, cr); }