summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-06 11:43:40 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-11-06 13:07:40 (GMT)
commit0345410e29bac602ececbd5045c455dd2db59b32 (patch)
tree111e2fdc700d79fb80dd5b4cb3e3c82bf598e5ea
parent0f73f9bab8e276890fd760bb7f88a63bdd45c520 (diff)
downloadQt-0345410e29bac602ececbd5045c455dd2db59b32.zip
Qt-0345410e29bac602ececbd5045c455dd2db59b32.tar.gz
Qt-0345410e29bac602ececbd5045c455dd2db59b32.tar.bz2
don't do unessesary brush comparrisons
Reviewed-by: Samuel
-rw-r--r--src/gui/painting/qpainter.cpp8
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;
}