[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.6/kdelibs/kfile
From:       Fredrik Höglund <fredrik () kde ! org>
Date:       2011-01-19 18:55:11
Message-ID: 20110119185511.560C8AC8B7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1215820 by fredrik:

Backport r1215819:

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  


--- branches/KDE/4.6/kdelibs/kfile/kfilepreviewgenerator.cpp #1215819:1215820
@@ -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(),
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic