Revision: 8592
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8592&view=rev
Author:   mdboom
Date:     2010-07-29 14:09:11 +0000 (Thu, 29 Jul 2010)

Log Message:
-----------
Remove points_to_pixels_snapto -- since it isn't used anywhere and is now 
actually incomplete wrt the new stroke-width-aware snapping.

Modified Paths:
--------------
    branches/v1_0_maint/src/_backend_agg.cpp
    branches/v1_0_maint/src/_backend_agg.h

Modified: branches/v1_0_maint/src/_backend_agg.cpp
===================================================================
--- branches/v1_0_maint/src/_backend_agg.cpp    2010-07-28 19:21:59 UTC (rev 
8591)
+++ branches/v1_0_maint/src/_backend_agg.cpp    2010-07-29 14:09:11 UTC (rev 
8592)
@@ -2245,18 +2245,6 @@
 
 
 double
-RendererAgg::points_to_pixels_snapto(const Py::Object& points)
-{
-    // convert a value in points to pixels depending on renderer dpi and
-    // screen pixels per inch
-    // snap return pixels to grid
-    _VERBOSE("RendererAgg::points_to_pixels_snapto");
-    double p = Py::Float(points) ;
-    return (int)(p*dpi / 72.0) + 0.5;
-}
-
-
-double
 RendererAgg::points_to_pixels(const Py::Object& points)
 {
     _VERBOSE("RendererAgg::points_to_pixels");

Modified: branches/v1_0_maint/src/_backend_agg.h
===================================================================
--- branches/v1_0_maint/src/_backend_agg.h      2010-07-28 19:21:59 UTC (rev 
8591)
+++ branches/v1_0_maint/src/_backend_agg.h      2010-07-29 14:09:11 UTC (rev 
8592)
@@ -230,7 +230,6 @@
 
 protected:
     double points_to_pixels(const Py::Object& points);
-    double points_to_pixels_snapto(const Py::Object& points);
     agg::rgba rgb_to_color(const Py::SeqBase<Py::Object>& rgb, double alpha);
     facepair_t _get_rgba_face(const Py::Object& rgbFace, double alpha);
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to