-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 31ef12ff35480a47c4652abee786c369f855abd0:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 31ef12ff35480a47c4652abee786c369f855abd0
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Mon Jan 2 19:31:00 2012 +0000

    Apply the convolution filter using pad repeat in rxvt_term::blur_pixmap.

diff --git a/src/background.C b/src/background.C

index e079b2208458f0ba8c957de1b1f273fa0744d9ea..

index ..8c997052d66b48c86f231d4e25b03d43d9c827c3 100644

--- a/src/background.C
+++ b/src/background.C
@@ -34,6 +34,10 @@
 #define FilterConvolution "convolution"
 #endif

+#ifndef RepeatPad
+#define RepeatPad True
+#endif
+
 #ifdef HAVE_BG_PIXMAP
 # if XRENDER
 static Picture
@@ -1057,10 +1061,12 @@ rxvt_term::blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height)
   double *kernel = (double *)malloc (size * sizeof (double));
   XFixed *params = (XFixed *)malloc ((size + 2) * sizeof (XFixed));

+  XRenderPictureAttributes pa;
   XRenderPictFormat *format = XRenderFindVisualFormat (dpy, visual);

-  Picture src = XRenderCreatePicture (dpy, pixmap, format, 0, 0);
-  Picture dst = XRenderCreatePicture (dpy, pixmap, format, 0, 0);
+  pa.repeat = RepeatPad;
+  Picture src = XRenderCreatePicture (dpy, pixmap, format, CPRepeat, &pa);
+  Picture dst = XRenderCreatePicture (dpy, pixmap, format, CPRepeat, &pa);

   if (kernel && params)
     {

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

-- Response ended

-- Page fetched on Sun Jun 2 13:27:14 2024