summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpainter
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2010-02-17 16:12:57 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2010-02-18 10:03:34 (GMT)
commita359db8f939ccbe8ce49c2ef71ff4585ab69c15e (patch)
treef116f5a3c7dacbab49bef1c14d396781d59e908a /tests/auto/qpainter
parent720d56486c3a3fd2d4d6517b8805ff96d3c6da60 (diff)
downloadQt-a359db8f939ccbe8ce49c2ef71ff4585ab69c15e.zip
Qt-a359db8f939ccbe8ce49c2ef71ff4585ab69c15e.tar.gz
Qt-a359db8f939ccbe8ce49c2ef71ff4585ab69c15e.tar.bz2
Fixed autotest failure in tst_QPainter::drawEllipse on Maemo.
The previous fix (baa7c3bdecc) attempted to fall back to path drawing in QPainter::drawEllipse, however we have some specific filling rules for aliased ellipse drawing in the raster paint engine. We should use the (now free of fixed point math) drawEllipse_midpoint_i function on all platforms. Reviewed-by: Gunnar Sletta
Diffstat (limited to 'tests/auto/qpainter')
-rw-r--r--tests/auto/qpainter/tst_qpainter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qpainter/tst_qpainter.cpp b/tests/auto/qpainter/tst_qpainter.cpp
index 104728d..beb83a1 100644
--- a/tests/auto/qpainter/tst_qpainter.cpp
+++ b/tests/auto/qpainter/tst_qpainter.cpp
@@ -1580,10 +1580,8 @@ void tst_QPainter::drawClippedEllipse_data()
void tst_QPainter::drawClippedEllipse()
{
QFETCH(QRect, rect);
-#if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN)
if (sizeof(qreal) != sizeof(double))
QSKIP("Test only works for qreal==double", SkipAll);
-#endif
QImage image(rect.width() + 1, rect.height() + 1,
QImage::Format_ARGB32_Premultiplied);
QRect expected = QRect(rect.x(), rect.y(), rect.width()+1, rect.height()+1)