Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/painting/qpaintengine_raster.cpp

    r651 r769  
    101101#include <limits.h>
    102102
    103 #if defined(QT_NO_FPU) || (_MSC_VER >= 1300 && _MSC_VER < 1400)
    104 #  define FLOATING_POINT_BUGGY_OR_NO_FPU
    105 #endif
    106 
    107103QT_BEGIN_NAMESPACE
    108104
    109 extern bool qt_scaleForTransform(const QTransform &transform, qreal *scale); // qtransform.cpp
     105Q_GUI_EXPORT extern bool qt_scaleForTransform(const QTransform &transform, qreal *scale); // qtransform.cpp
    110106
    111107#define qreal_to_fixed_26_6(f) (int(f * 64))
     
    36803676         || (qpen_style(s->lastPen) == Qt::NoPen && !s->flags.antialiased))
    36813677        && qMax(rect.width(), rect.height()) < QT_RASTER_COORD_LIMIT
    3682 #ifdef FLOATING_POINT_BUGGY_OR_NO_FPU
    3683         && qMax(rect.width(), rect.height()) < 128 // integer math breakdown
    3684 #endif
    36853678        && s->matrix.type() <= QTransform::TxScale) // no shear
    36863679    {
     
    49854978}
    49864979
    4987 extern QImage qt_imageForBrush(int brushStyle, bool invert);
     4980Q_GUI_EXPORT extern QImage qt_imageForBrush(int brushStyle, bool invert);
    49884981
    49894982void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode compositionMode)
     
    60556048                                   QSpanData *pen_data, QSpanData *brush_data)
    60566049{
    6057 #ifdef FLOATING_POINT_BUGGY_OR_NO_FPU // no fpu, so use fixed point
    6058     const QFixed a = QFixed(rect.width()) >> 1;
    6059     const QFixed b = QFixed(rect.height()) >> 1;
    6060     QFixed d = b*b - (a*a*b) + ((a*a) >> 2);
    6061 #else
    60626050    const qreal a = qreal(rect.width()) / 2;
    60636051    const qreal b = qreal(rect.height()) / 2;
    60646052    qreal d = b*b - (a*a*b) + 0.25*a*a;
    6065 #endif
    60666053
    60676054    int x = 0;
     
    60866073
    60876074    // region 2
    6088 #ifdef FLOATING_POINT_BUGGY_OR_NO_FPU
    6089     d = b*b*(x + (QFixed(1) >> 1))*(x + (QFixed(1) >> 1))
    6090         + a*a*((y - 1)*(y - 1) - b*b);
    6091 #else
    60926075    d = b*b*(x + 0.5)*(x + 0.5) + a*a*((y - 1)*(y - 1) - b*b);
    6093 #endif
    60946076    const int miny = rect.height() & 0x1;
    60956077    while (y > miny) {
Note: See TracChangeset for help on using the changeset viewer.