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

List:       kde-commits
Subject:    KDE/kdelibs/kfile
From:       Fredrik Höglund <fredrik () kde ! org>
Date:       2011-01-19 18:51:50
Message-ID: 20110119185150.DB10AAC8B7 () svn ! kde ! org
[Download RAW message or body]

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(),
[prev in list] [next in list] [prev in thread] [next in thread] 

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