From: <lee...@us...> - 2009-06-24 05:53:01
|
Revision: 7235 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7235&view=rev Author: leejjoon Date: 2009-06-24 05:51:52 +0000 (Wed, 24 Jun 2009) Log Message: ----------- backend_agg.draw_marker quantizes the main path (checking in a missed file) Modified Paths: -------------- trunk/matplotlib/src/_backend_agg.cpp Modified: trunk/matplotlib/src/_backend_agg.cpp =================================================================== --- trunk/matplotlib/src/_backend_agg.cpp 2009-06-24 05:49:37 UTC (rev 7234) +++ trunk/matplotlib/src/_backend_agg.cpp 2009-06-24 05:51:52 UTC (rev 7235) @@ -542,13 +542,17 @@ PathIterator marker_path(marker_path_obj); transformed_path_t marker_path_transformed(marker_path, marker_trans); quantize_t marker_path_quantized(marker_path_transformed, - gc.quantize_mode, + gc.quantize_mode, marker_path.total_vertices()); curve_t marker_path_curve(marker_path_quantized); PathIterator path(path_obj); transformed_path_t path_transformed(path, trans); - path_transformed.rewind(0); + quantize_t path_quantized(path_transformed, + gc.quantize_mode, + path.total_vertices()); + curve_t path_curve(path_quantized); + path_curve.rewind(0); facepair_t face = _get_rgba_face(face_obj, gc.alpha); @@ -597,7 +601,7 @@ agg::serialized_scanlines_adaptor_aa8::embedded_scanline sl; if (has_clippath) { - while (path_transformed.vertex(&x, &y) != agg::path_cmd_stop) { + while (path_curve.vertex(&x, &y) != agg::path_cmd_stop) { if (MPL_notisfinite64(x) || MPL_notisfinite64(y)) { continue; } @@ -618,7 +622,7 @@ agg::render_scanlines(sa, sl, ren); } } else { - while (path_transformed.vertex(&x, &y) != agg::path_cmd_stop) { + while (path_curve.vertex(&x, &y) != agg::path_cmd_stop) { if (MPL_notisfinite64(x) || MPL_notisfinite64(y)) { continue; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |