-- 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:
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
--- 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