summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpainter
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-09-23 08:04:39 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-09-23 13:40:59 (GMT)
commit93199a5b7082fd484b7f21ad4825d71693ecead2 (patch)
tree22a583955e1253141d6a0aa9db12327622a6625d /tests/auto/qpainter
parent7c673a4cf64ba043bb27f90287517bdcdd7a21db (diff)
downloadQt-93199a5b7082fd484b7f21ad4825d71693ecead2.zip
Qt-93199a5b7082fd484b7f21ad4825d71693ecead2.tar.gz
Qt-93199a5b7082fd484b7f21ad4825d71693ecead2.tar.bz2
Fixed floating point overflow issues in QRasterizer::rasterizeLine
Change 7c673a4cf64ba04 introduced some autotest failures in the fpe_steepSlopes test in QPainter. Since the other rasterizers all deal in a 26.6 fixed point coordinate space we should snap the line vertices to this to prevent floating point overflows due to very steep slopes. This also necessitates keeping track of four different slope / inverse slope increments for each of the four edges. This also fixes a previously QEXPECT_FAIL'ed test case. Task-number: QTBUG-13429 Reviewed-by: Trond
Diffstat (limited to 'tests/auto/qpainter')
-rw-r--r--tests/auto/qpainter/tst_qpainter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qpainter/tst_qpainter.cpp b/tests/auto/qpainter/tst_qpainter.cpp
index a94c300..45f5c3e 100644
--- a/tests/auto/qpainter/tst_qpainter.cpp
+++ b/tests/auto/qpainter/tst_qpainter.cpp
@@ -3172,7 +3172,6 @@ void fpe_steepSlopes()
p.setRenderHint(QPainter::Antialiasing, antialiased);
p.setTransform(transform);
- QEXPECT_FAIL("steep line 3 aa", "needs to be fixed", Continue);
p.drawLine(line);
}