Skip to content

Commit 8f2e1ae

Browse files
committed
Remove points_to_pixels_snapto -- since it isn't used anywhere and is now actually incomplete wrt the new stroke-width-aware snapping.
svn path=/branches/v1_0_maint/; revision=8592
1 parent 59c25cd commit 8f2e1ae

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/_backend_agg.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -2244,18 +2244,6 @@ RendererAgg::rgb_to_color(const Py::SeqBase<Py::Object>& rgb, double alpha)
22442244
}
22452245

22462246

2247-
double
2248-
RendererAgg::points_to_pixels_snapto(const Py::Object& points)
2249-
{
2250-
// convert a value in points to pixels depending on renderer dpi and
2251-
// screen pixels per inch
2252-
// snap return pixels to grid
2253-
_VERBOSE("RendererAgg::points_to_pixels_snapto");
2254-
double p = Py::Float(points) ;
2255-
return (int)(p*dpi / 72.0) + 0.5;
2256-
}
2257-
2258-
22592247
double
22602248
RendererAgg::points_to_pixels(const Py::Object& points)
22612249
{

src/_backend_agg.h

-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ class RendererAgg: public Py::PythonExtension<RendererAgg>
230230

231231
protected:
232232
double points_to_pixels(const Py::Object& points);
233-
double points_to_pixels_snapto(const Py::Object& points);
234233
agg::rgba rgb_to_color(const Py::SeqBase<Py::Object>& rgb, double alpha);
235234
facepair_t _get_rgba_face(const Py::Object& rgbFace, double alpha);
236235

0 commit comments

Comments
 (0)