repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: c9732d5512cca1b94383d9204ce7e210af5e8a60:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit c9732d5512cca1b94383d9204ce7e210af5e8a60
Author: Emanuele Giaquinta 
Date:   Fri Jun 8 10:28:30 2012 +0000

    Set pad repeat on the source picture rather than on the destination picture in blur.

diff --git a/src/rxvtimg.C b/src/rxvtimg.C
index 3d8d41d945a74d89d1b8bcc336ecf2bde941b428..
index ..5cc0ed872fe8fe4ec21c609c463bb474d470e2e5 100644
--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -267,11 +267,10 @@ rxvt_img::blur (int rh, int rv)
   rxvt_img *img = new rxvt_img (s, format, x, y, w, h, repeat);
   img->alloc ();

-  Picture src = src_picture ();
-
   XRenderPictureAttributes pa;
   pa.repeat = RepeatPad;
-  Picture dst = XRenderCreatePicture (dpy, img->pm, format, CPRepeat, &pa);
+  Picture src = XRenderCreatePicture (dpy, pm, format, CPRepeat, &pa);
+  Picture dst = XRenderCreatePicture (dpy, img->pm, format, 0, 0);

   Pixmap tmp_pm = XCreatePixmap (dpy, pm, w, h, format->depth);
   Picture tmp = XRenderCreatePicture (dpy, tmp_pm , format, CPRepeat, &pa);

-----END OF PAGE-----