#include "qpathclipper_p.h"
#include "qstroker_p.h"
#include "qtextengine_p.h"
+#include "qguicommon_p.h"
#include <limits.h>
else if (d->elements.size() != path.d_func()->elements.size())
return false;
- static const qreal qt_epsilon = std::numeric_limits<qreal>::epsilon();;
-
QSizeF epsilon = boundingRect().size();
epsilon.rwidth() *= qt_epsilon;
epsilon.rheight() *= qt_epsilon;
****************************************************************************/
#include "qpathclipper_p.h"
-
#include "qbezier_p.h"
#include "qmath.h"
#include "qnumeric.h"
#include "qdebug.h"
+#include "qguicommon_p.h"
/**
The algorithm is as follows:
static inline bool fuzzyIsNull(qreal d)
{
- return qAbs(d) <= std::numeric_limits<qreal>::epsilon();
+ return qAbs(d) <= qt_epsilon;
}
static inline bool comparePoints(const QPointF &a, const QPointF &b)
QT_BEGIN_NAMESPACE
+#ifdef QT_NO_FPU
+static const qreal qt_epsilon = qreal(1e-12);
+#else
+static const qreal qt_epsilon = qreal(1e-5);
+#endif
+
// same as QColor(Qt::color0).rgba() and QColor(Qt::white).rgba()
static const QRgb qt_whitergba = qRgba(255, 255, 255, 255);
// same as QColor(Qt::color0).rgb() and QColor(Qt::white).rgb()