diff -r b72c6db6890b -r 5dc02b23752f src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp --- a/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp Wed Jun 23 19:07:03 2010 +0300 +++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp Tue Jul 06 15:10:48 2010 +0300 @@ -61,12 +61,6 @@ return QGLRect(minX, minY, maxX, maxY); } -void QGL2PEXVertexArray::addRect(const QRectF &rect) -{ - vertexArray << rect.topLeft() << rect.topRight() << rect.bottomRight() - << rect.bottomRight() << rect.bottomLeft() << rect.topLeft(); -} - void QGL2PEXVertexArray::addClosingLine(int index) { if (QPointF(vertexArray.at(index)) != QPointF(vertexArray.last())) @@ -145,7 +139,7 @@ // threshold based on same algorithm as in qtriangulatingstroker.cpp int threshold = qMin(64, qMax(bounds.width(), bounds.height()) * 3.14f / (curveInverseScale * 6)); if (threshold < 3) threshold = 3; - qreal one_over_threshold_minus_1 = 1.f / (threshold - 1); + qreal one_over_threshold_minus_1 = qreal(1) / (threshold - 1); for (int t=0; t