From d6f612cffbcd5e31ec03802019892a4ba6c8e9fd Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 9 Sep 2020 17:47:04 +0200 Subject: Remove dead code And remove another ### Qt comment, this time ### Qt 5. Change-Id: I1d5cef47ddd81b6a27f870599128c8f16846c350 Reviewed-by: Gatis Paeglis --- .../platforms/xcb/nativepainting/qpaintengine_x11.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/xcb/nativepainting/qpaintengine_x11.cpp b/src/plugins/platforms/xcb/nativepainting/qpaintengine_x11.cpp index ab0f537926..82900d4054 100644 --- a/src/plugins/platforms/xcb/nativepainting/qpaintengine_x11.cpp +++ b/src/plugins/platforms/xcb/nativepainting/qpaintengine_x11.cpp @@ -2303,21 +2303,6 @@ void QX11PaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, co #if QT_CONFIG(xrender) if (X11->use_xrender && d->picture && qt_x11PictureHandle(pixmap)) { -#if 0 - // ### Qt 5: enable this - XRenderPictureAttributes attrs; - attrs.repeat = true; - XRenderChangePicture(d->dpy, pixmap.x11PictureHandle(), CPRepeat, &attrs); - - if (mono_src) { - qt_render_bitmap(d->dpy, d->scrn, pixmap.x11PictureHandle(), d->picture, - sx, sy, x, y, w, h, d->cpen); - } else { - XRenderComposite(d->dpy, d->composition_mode, - pixmap.x11PictureHandle(), XNone, d->picture, - sx, sy, 0, 0, x, y, w, h); - } -#else const int numTiles = (w / pixmap.width()) * (h / pixmap.height()); if (numTiles < 100) { // this is essentially qt_draw_tile(), inlined for @@ -2400,7 +2385,6 @@ void QX11PaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, co pmPicture, XNone, d->picture, sx, sy, 0, 0, x, y, w, h); } -#endif } else #endif // QT_CONFIG(xrender) if (pixmap.depth() > 1 && !static_cast(pixmap.handle())->x11_mask) { -- cgit v1.2.3