summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/painting/qpaintengine_x11.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp
index eb39893..df04ebb 100644
--- a/src/gui/painting/qpaintengine_x11.cpp
+++ b/src/gui/painting/qpaintengine_x11.cpp
@@ -777,7 +777,10 @@ void QX11PaintEngine::drawRects(const QRectF *rects, int rectCount)
|| d->has_complex_xform
|| d->has_custom_pen
|| d->cbrush.style() != Qt::SolidPattern
- || complexPictOp(d->composition_mode))
+#if !defined(QT_NO_XRENDER)
+ || complexPictOp(d->composition_mode)
+#endif
+ )
{
QPaintEngine::drawRects(rects, rectCount);
return;