| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -506,6 +506,8 @@ RendererAgg::draw_markers(const Py::Tuple& args) { | |||
| 506 | 506 | //maxim's suggestions for cached scanlines | |
| 507 | 507 | agg::scanline_storage_aa8 scanlines; | |
| 508 | 508 | theRasterizer->reset(); | |
| 509 | + theRasterizer->reset_clipping(); | ||
| 510 | + rendererBase->reset_clipping(true); | ||
| 509 | 511 | ||
| 510 | 512 | agg::int8u staticFillCache[MARKER_CACHE_SIZE]; | |
| 511 | 513 | agg::int8u staticStrokeCache[MARKER_CACHE_SIZE]; | |
@@ -792,8 +794,12 @@ void RendererAgg::_draw_path(path_t& path, bool has_clippath, | |||
| 792 | 794 | // Render stroke | |
| 793 | 795 | if (gc.linewidth != 0.0) { | |
| 794 | 796 | double linewidth = gc.linewidth; | |
| 795 | - if (!gc.isaa) | ||
| 796 | - linewidth = round(linewidth); | ||
| 797 | + if (!gc.isaa) { | ||
| 798 | + if (linewidth < 0.5) | ||
| 799 | + linewidth = 0.5; | ||
| 800 | + else | ||
| 801 | + linewidth = round(linewidth); | ||
| 802 | + } | ||
| 797 | 803 | if (gc.dashes.size() == 0) { | |
| 798 | 804 | stroke_t stroke(path); | |
| 799 | 805 | stroke.width(linewidth); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments