diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-06 11:43:40 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-06 11:43:40 (GMT) |
commit | ddc5383e9ab596d42c0f481c0916234c238e8bb5 (patch) | |
tree | fad81be7e6d008bb8f6a446dde0e463e847f6c4f /src/gui | |
parent | 1e77901a50858cf9243e6d813303d8ce013e4d31 (diff) | |
download | Qt-ddc5383e9ab596d42c0f481c0916234c238e8bb5.zip Qt-ddc5383e9ab596d42c0f481c0916234c238e8bb5.tar.gz Qt-ddc5383e9ab596d42c0f481c0916234c238e8bb5.tar.bz2 |
don't do unessesary brush comparrisons
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 09a4563..4c13d3e 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -3890,14 +3890,6 @@ void QPainter::setBrush(const QBrush &brush) return; } - Qt::BrushStyle currentStyle = d->state->brush.style(); - if (currentStyle == brush.style()) { - if (currentStyle == Qt::NoBrush - || (currentStyle == Qt::SolidPattern - && d->state->brush.color() == brush.color())) - return; - } - d->state->brush = brush; d->state->dirtyFlags |= QPaintEngine::DirtyBrush; } |