Changeset 846 for trunk/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 62 62 } 63 63 64 void QGL2PEXVertexArray::addRect(const QRectF &rect)65 {66 vertexArray << rect.topLeft() << rect.topRight() << rect.bottomRight()67 << rect.bottomRight() << rect.bottomLeft() << rect.topLeft();68 }69 70 64 void QGL2PEXVertexArray::addClosingLine(int index) 71 65 { 72 if (QPointF(vertexArray.at(index)) != QPointF(vertexArray.last())) 73 vertexArray.add(vertexArray.at(index)); 66 QPointF point(vertexArray.at(index)); 67 if (point != QPointF(vertexArray.last())) 68 vertexArray.add(point); 74 69 } 75 70 … … 146 141 int threshold = qMin<float>(64, qMax(bounds.width(), bounds.height()) * 3.14f / (curveInverseScale * 6)); 147 142 if (threshold < 3) threshold = 3; 148 qreal one_over_threshold_minus_1 = 1.f/ (threshold - 1);143 qreal one_over_threshold_minus_1 = qreal(1) / (threshold - 1); 149 144 for (int t=0; t<threshold; ++t) { 150 145 QPointF pt = b.pointAt(t * one_over_threshold_minus_1);
Note:
See TracChangeset
for help on using the changeset viewer.