Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    6262}
    6363
    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 
    7064void QGL2PEXVertexArray::addClosingLine(int index)
    7165{
    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);
    7469}
    7570
     
    146141                int threshold = qMin<float>(64, qMax(bounds.width(), bounds.height()) * 3.14f / (curveInverseScale * 6));
    147142                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);
    149144                for (int t=0; t<threshold; ++t) {
    150145                    QPointF pt = b.pointAt(t * one_over_threshold_minus_1);
Note: See TracChangeset for help on using the changeset viewer.