[Xfce4-commits] [xfce/xfwm4] 01/01: Try to improve scaling quality

noreply at xfce.org noreply at xfce.org
Sun Feb 8 12:16:27 CET 2015


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit 27a5836ea080bbbb8d271aa71a3b8dfd8a9daddb
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Sun Feb 8 12:13:56 2015 +0100

    Try to improve scaling quality
    
    By using the "best" XRender filter.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index e6819a2..59e0c1d 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3110,15 +3110,14 @@ compositorScaleWindowPixmap (CWindow *cw, guint *width, guint *height)
     }
 
     srcPicture = XRenderCreatePicture (dpy, source, render_format, 0, NULL);
-    XRenderSetPictureFilter (dpy, srcPicture, FilterBilinear, 0, 0);
     XRenderSetPictureTransform (dpy, srcPicture, &transform);
+    XRenderSetPictureFilter (dpy, srcPicture, FilterBest, 0, 0);
 
     render_format = XRenderFindStandardFormat (dpy, PictStandardARGB32);
     destPicture = XRenderCreatePicture (dpy, pixmap, render_format, 0, NULL);
-    XRenderSetPictureFilter (dpy, destPicture, FilterBilinear, 0, 0);
 
     XRenderFillRectangle (dpy, PictOpSrc, destPicture, &c, 0, 0, dest_w, dest_h);
-    XRenderComposite (dpy, PictOpSrc, srcPicture, None, destPicture,
+    XRenderComposite (dpy, PictOpOver, srcPicture, None, destPicture,
                       0, 0, 0, 0, 0, 0, dest_w, dest_h);
 
     XRenderFreePicture (dpy, srcPicture);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list