Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1beccd9

Browse files
committed
Turn off anti-aliasing when auto-snapping.
svn path=/branches/v0_98_5_maint/; revision=6609
1 parent 5e84fd9 commit 1beccd9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-12-15 Fix anti-aliasing when auto-snapping - MGD
2+
13
2008-12-15 Fix grid lines not moving correctly during pan and zoom - MGD
24

35
2008-12-12 Fixed warning in hist() with numpy 1.2 - MM

src/_backend_agg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ RendererAgg::_get_rgba_face(const Py::Object& rgbFace, double alpha) {
355355
}
356356

357357
template<class Path>
358-
bool should_snap(const GCAgg& gc, Path& path, const agg::trans_affine& trans) {
358+
bool should_snap(GCAgg& gc, Path& path, const agg::trans_affine& trans) {
359359
// If this contains only straight horizontal or vertical lines, it should be
360360
// quantized to the nearest pixels
361361
double x0, y0, x1, y1;
@@ -393,6 +393,7 @@ bool should_snap(const GCAgg& gc, Path& path, const agg::trans_affine& trans) {
393393
}
394394

395395
path.rewind(0);
396+
gc.isaa = false;
396397
return true;
397398
case GCAgg::SNAP_FALSE:
398399
return false;

0 commit comments

Comments
 (0)