-- 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: 2d55cfd60da64123ad95cefd633ae0c910642119:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

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

commit 2d55cfd60da64123ad95cefd633ae0c910642119
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Mon Dec 15 00:51:06 2014 +0000

    *** empty log message ***

diff --git a/Changes b/Changes

index a567fc86d51c1905570f3ad2b912b1ab51d53b9b..

index ..d7e624743637e1ac4921151fba1ddd82370105f6 100644

--- a/Changes
+++ b/Changes
@@ -37,6 +37,7 @@ TODO: document typical actions in rxvt.1.pod keysyms
 TODO: warn with a graphical message when env has been modified

 TODO: open question, what does the nested set_color calls in get_coplours actualyl do? we can fail, but we always allocyte a replacement color.
+	- the "moa redraw 8-bit british vintage colour management" release.
 	- NOTICE: this release updates terminfo.
 	- fix pixel droppings on overdraw when a secondary core font has the
           same height but different ascent.
@@ -92,6 +93,9 @@ TODO: open question, what does the nested set_color calls in get_coplours actual
         - use simpler (but slightly less bogus) formula for nearest
           colour choice (this is likely only relevant for antique 8bpp
           frame buffers).
+        - remove fallback behaviour when initialising colours - the
+          behaviour was incosistent between startup vs. later and
+          was only effective when valid colours couldn't be allocated.

 9.20 Sat Apr 26 16:22:27 CEST 2014
         - (libptytty) fix bug that prevented urxvtd from writing utmp
diff --git a/src/init.C b/src/init.C

index 52fc9e215fd4d074bb5b12e7a225ab53c18a3dbb..

index ..44c1741356e564bece87261c34e685fac257249f 100644

--- a/src/init.C
+++ b/src/init.C
@@ -1073,48 +1073,7 @@ rxvt_term::get_colors ()
       if (!name)
         continue;

-      rxvt_color xcol;
-
-      if (!set_color (xcol, name))
-        {
-#ifndef XTERM_REVERSE_VIDEO
-          if (i < 2 && option (Opt_reverseVideo))
-            name = def_colorName [1 - i];
-          else
-#endif
-            name = def_colorName [i];
-
-          if (!name)
-            continue;
-
-          xcol.free (this);
-
-          if (!set_color (xcol, name))
-            {
-              switch (i)
-                {
-                  case Color_fg:
-                  case Color_bg:
-                    rxvt_warn ("unable to get foreground/background colour, continuing.\n");
-                    name = "";
-                    break;
-#ifndef NO_CURSORCOLOR
-                  case Color_cursor2:
-#endif
-                  case Color_pointer_fg:
-                    name = rs[Rs_color + Color_fg];
-                    xcol.set (this, name);
-                    break;
-                  default:
-                    name = rs[Rs_color + Color_bg];
-                    xcol.set (this, name);
-                    break;
-                }
-            }
-        }
-
-      pix_colors[i] = xcol;
-      rs[Rs_color + i] = name;
+      set_color (pix_colors [i], name);
     }

   /*

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

-- Response ended

-- Page fetched on Sun Jun 2 11:09:43 2024