Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
880:ac3e8492ad74 | 881:a17c4e231e54 |
---|---|
2166 #endif /* UNITTEST */ | 2166 #endif /* UNITTEST */ |
2167 } | 2167 } |
2168 | 2168 |
2169 fill = shape->fill; | 2169 fill = shape->fill; |
2170 if(shape->fill) { | 2170 if(shape->fill) { |
2171 fill->prepare(fill, cr); | 2171 fill->prepare(fill, cr, shape); |
2172 if(shape->stroke) | 2172 if(shape->stroke) |
2173 fill_path_preserve(rdman, cr); | 2173 fill_path_preserve(rdman, cr); |
2174 else | 2174 else |
2175 fill_path(rdman, cr); | 2175 fill_path(rdman, cr); |
2176 } | 2176 } |
2177 | 2177 |
2178 stroke = shape->stroke; | 2178 stroke = shape->stroke; |
2179 if(stroke) { | 2179 if(stroke) { |
2180 stroke->prepare(stroke, cr); | 2180 stroke->prepare(stroke, cr, shape); |
2181 set_shape_stroke_param(shape, cr); | 2181 set_shape_stroke_param(shape, cr); |
2182 stroke_path(rdman, cr); | 2182 stroke_path(rdman, cr); |
2183 } | 2183 } |
2184 } | 2184 } |
2185 } | 2185 } |