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

git.thebackupbox.net

rxvt-unicode-sixel

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

commit e99108c94c9cc316b1a38d6f2afd19a0b90b4317
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Wed Jan 23 09:23:39 2008 +0000

    removed undocumented #aarrggbb format, it was never documented, and i don't see the point

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

index 3d6f39deee18a1b944d844a5c8a0c28b94a43a9a..

index ..da7e2a942bff2b543107ba9fef6780269c57ba8b 100644

--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -742,25 +742,17 @@ rxvt_color::set (rxvt_screen *screen, const char *name)
   char eos;
   int skip;

+  c.a = rgba::MAX_CC;
+
   // parse the nonstandard "[alphapercent]" prefix
   if (1 <= sscanf (name, "[%hd]%n", &c.a, &skip))
     {
       c.a = lerp<int, int, int> (0, rgba::MAX_CC, c.a);
       name += skip;
     }
-  else
-    c.a = rgba::MAX_CC;

-  // parse the non-standard "#aarrggbb" format
-  if (name[0] == '#' && strlen (name) == 1+2+2+2+2 && 4 == sscanf (name+1, "%2hx%2hx%2hx%2hx%c", &c.a, &c.r, &c.g, &c.b, &eos))
-    {
-      c.r <<= 8;
-      c.g <<= 8;
-      c.b <<= 8;
-      c.a <<= 8;
-    }
   // parse the non-standard "rgba:rrrr/gggg/bbbb/aaaa" format
-  else if (strlen (name) != 4+5*4 || 4 != sscanf (name, "rgba:%4hx/%4hx/%4hx/%4hx%c", &c.r, &c.g, &c.b, &c.a, &eos))
+  if (strlen (name) != 4+5*4 || 4 != sscanf (name, "rgba:%4hx/%4hx/%4hx/%4hx%c", &c.r, &c.g, &c.b, &c.a, &eos))
     {
       XColor xc;

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

-- Response ended

-- Page fetched on Sun Jun 2 14:11:15 2024