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

git.thebackupbox.net

rxvt-unicode-sixel

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

commit ed58ae3ed2850164fdd037e9085c05ab3c2e783c
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Fri Jun 8 17:22:48 2012 +0000

    *** empty log message ***

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

index 5cc0ed872fe8fe4ec21c609c463bb474d470e2e5..

index ..df76a5c82cd599df19c497f9e47487cce39ad652 100644

--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -409,9 +409,10 @@ rxvt_img::reify ()

   Display *dpy = s->display->dpy;

-  bool alpha = !format->direct.alphaMask
-               && (x || y)
-               && repeat == RepeatNone;
+  // add an alpha channel if...
+  bool alpha = !format->direct.alphaMask // pixmap has none yet
+               && (x || y)               // we need one because of non-zero offset
+               && repeat == RepeatNone;  // and we have no good pixels to fill with

   rxvt_img *img = new rxvt_img (s, alpha ? find_alpha_format_for (dpy, format) : format, 0, 0, w, h, repeat);
   img->alloc ();

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

-- Response ended

-- Page fetched on Sun Jun 2 11:30:58 2024