From kde-commits Wed Jan 19 18:51:50 2011 From: =?utf-8?q?Fredrik=20H=C3=B6glund?= Date: Wed, 19 Jan 2011 18:51:50 +0000 To: kde-commits Subject: KDE/kdelibs/kfile Message-Id: <20110119185150.DB10AAC8B7 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129546315424595 SVN commit 1215819 by fredrik: Set the picture repeat mode to RepeatPad when scaling the previews. This is required for the transformation to be accelerated. M +5 -0 kfilepreviewgenerator.cpp --- trunk/KDE/kdelibs/kfile/kfilepreviewgenerator.cpp #1215818:1215819 @@ -968,6 +968,11 @@ pixmap.fill(Qt::transparent); Display* dpy = QX11Info::display(); + + XRenderPictureAttributes attr; + attr.repeat = RepeatPad; + XRenderChangePicture(dpy, icon.x11PictureHandle(), CPRepeat, &attr); + XRenderSetPictureFilter(dpy, icon.x11PictureHandle(), FilterBilinear, 0, 0); XRenderSetPictureTransform(dpy, icon.x11PictureHandle(), &xform); XRenderComposite(dpy, PictOpOver, icon.x11PictureHandle(), None, pixmap.x11PictureHandle(),