[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/ksvg
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2003-10-31 21:17:16
[Download RAW message or body]

CVS commit by wheeler: 

This is a little better than hardcoding it and this is where the STL thing
that works with 3.3 was getting the value from anyway.


  M +3 -1      impl/SVGMaskElementImpl.cc   1.29
  M +5 -3      plugin/backends/libart/LibartCanvasItems.cpp   1.98


--- kdegraphics/ksvg/impl/SVGMaskElementImpl.cc  #1.28:1.29
@@ -19,4 +19,6 @@
 */
 
+#include <cfloat>
+
 #include <kdebug.h>
 #include <qimage.h>
@@ -341,5 +343,5 @@ SVGMaskElementImpl::Mask SVGMaskElementI
 
         QByteArray maskData(imageWidth * imageHeight);
-        const double epsilon = 1e-6;
+    const double epsilon = DBL_EPSILON;
 
         // Convert the rgba image into an 8-bit mask, according to the specs.

--- kdegraphics/ksvg/plugin/backends/libart/LibartCanvasItems.cpp  #1.97:1.98
@@ -19,4 +19,6 @@
 */
 
+#include <cfloat>
+
 #include <qimage.h>
 #include <qwmatrix.h>
@@ -1945,5 +1947,5 @@ ArtRender *LibartPaintServer::createRend
 void LibartGradient::parseGradientStops(SVGGradientElementImpl *gradient)
 {
-        const double epsilon = 1e-6;
+        const double epsilon = DBL_EPSILON;
 
         for(DOM::Node node = gradient->firstChild(); !node.isNull(); node = \
node.nextSibling()) @@ -2064,5 +2066,5 @@ void LibartLinearGradient::render(KSVGCa
                         matrix = SVGSVGElementImpl::createSVGMatrix();
 
-                const double epsilon = 1e-6;
+                const double epsilon = DBL_EPSILON;
 
                 if(m_linear->gradientUnits()->baseVal() == \
SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) @@ -2211,5 +2213,5 @@ void \
LibartRadialGradient::render(KSVGCa  _fy = m_radial->fy()->baseVal()->value();
 
-                const double epsilon = 1e-6;
+                const double epsilon = DBL_EPSILON;
 
                 if(m_radial->gradientUnits()->baseVal() == \
SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic