summaryrefslogtreecommitdiff
path: root/src/gui/painting/qstroker.cpp
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-12-15 13:50:01 +0100
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-12-15 13:53:52 +0100
commit4391014d4533e60dc4e5e413db50b21f68f4658c (patch)
treef82a40ea71e58ed44cb199daffe8305e7988b379 /src/gui/painting/qstroker.cpp
parent100ad353689b8203988c87afe30953d59bdad736 (diff)
downloadqt4-tools-4391014d4533e60dc4e5e413db50b21f68f4658c.tar.gz
qreal-ization
Using math wrapper functions instead direct call. This gives us top-level control to what (single/double) precision we are effectively using. Task-number: QTBUG-4894 Reviewed-by: janarve Reviewed-by: Kim Motoyoshi Kalland
Diffstat (limited to 'src/gui/painting/qstroker.cpp')
-rw-r--r--src/gui/painting/qstroker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qstroker.cpp b/src/gui/painting/qstroker.cpp
index 228a6b12f3..8bb4728350 100644
--- a/src/gui/painting/qstroker.cpp
+++ b/src/gui/painting/qstroker.cpp
@@ -910,8 +910,8 @@ QPointF qt_curves_for_arc(const QRectF &rect, qreal startAngle, qreal sweepLengt
}
}
- int startSegment = int(floor(startAngle / 90));
- int endSegment = int(floor((startAngle + sweepLength) / 90));
+ int startSegment = int(qFloor(startAngle / 90));
+ int endSegment = int(qFloor((startAngle + sweepLength) / 90));
qreal startT = (startAngle - startSegment * 90) / 90;
qreal endT = (startAngle + sweepLength - endSegment * 90) / 90;