[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/ksvg
From: Adrian Page <Adrian.Page () tesco ! net>
Date: 2003-10-31 20:41:05
[Download RAW message or body]
CVS commit by page:
GCC < 3.0 has no <limits>
M +2 -1 impl/SVGMaskElementImpl.cc 1.28
M +3 -5 plugin/backends/libart/LibartCanvasItems.cpp 1.97
--- kdegraphics/ksvg/impl/SVGMaskElementImpl.cc #1.27:1.28
@@ -341,4 +341,5 @@ SVGMaskElementImpl::Mask SVGMaskElementI
QByteArray maskData(imageWidth * imageHeight);
+ const double epsilon = 1e-6;
// Convert the rgba image into an 8-bit mask, according to the specs.
@@ -360,5 +361,5 @@ SVGMaskElementImpl::Mask SVGMaskElementI
// Remove pre-multiplication by alpha.
- if(a > 0)
+ if(a > epsilon)
{
r /= a;
--- kdegraphics/ksvg/plugin/backends/libart/LibartCanvasItems.cpp #1.96:1.97
@@ -19,6 +19,4 @@
*/
-#include <limits>
-
#include <qimage.h>
#include <qwmatrix.h>
@@ -1947,5 +1945,5 @@ ArtRender *LibartPaintServer::createRend
void LibartGradient::parseGradientStops(SVGGradientElementImpl *gradient)
{
- const double epsilon = std::numeric_limits<double>::epsilon();
+ const double epsilon = 1e-6;
for(DOM::Node node = gradient->firstChild(); !node.isNull(); node = \
node.nextSibling()) @@ -2066,5 +2064,5 @@ void LibartLinearGradient::render(KSVGCa
matrix = SVGSVGElementImpl::createSVGMatrix();
- const double epsilon = std::numeric_limits<double>::epsilon();
+ const double epsilon = 1e-6;
if(m_linear->gradientUnits()->baseVal() == \
SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) @@ -2213,5 +2211,5 @@ void \
LibartRadialGradient::render(KSVGCa _fy = m_radial->fy()->baseVal()->value();
- const double epsilon = std::numeric_limits<double>::epsilon();
+ const double epsilon = 1e-6;
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