-- 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: c5174761bf17f6e33a29a606c787fbb512bc0857:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

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

commit c5174761bf17f6e33a29a606c787fbb512bc0857
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Sat Jun 9 14:18:53 2012 +0000

    Simplify.

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

index f4cd9f2b56e8217e17a4130892d8c95ba0cee646..

index ..eabc33ec1f09e57b00821818133c83aa39076117 100644

--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -396,7 +396,6 @@ rxvt_img::contrast (int32_t r, int32_t g, int32_t b, int32_t a)
   unshare ();

   Display *dpy = s->display->dpy;
-  Picture src = create_xrender_mask (dpy, pm, True);
   Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0);

   XRenderColor mask_c;
@@ -404,11 +403,8 @@ rxvt_img::contrast (int32_t r, int32_t g, int32_t b, int32_t a)
   mask_c.green = g;
   mask_c.blue  = b;
   mask_c.alpha = a;
-  XRenderFillRectangle (dpy, PictOpSrc, src, &mask_c, 0, 0, 1, 1);
+  XRenderFillRectangle (dpy, PictOpMultiply, dst, &mask_c, 0, 0, w, h);

-  XRenderComposite (dpy, PictOpMultiply, src, None, dst, 0, 0, 0, 0, 0, 0, w, h);
-
-  XRenderFreePicture (dpy, src);
   XRenderFreePicture (dpy, dst);
 }

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

-- Response ended

-- Page fetched on Sun Jun 2 13:34:51 2024