-- 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: 1847e3324628438ebe0cffc3268f4eaa49c903f2:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

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

commit 1847e3324628438ebe0cffc3268f4eaa49c903f2
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Sun Aug 29 15:12:41 2010 +0000

    Simplify 'bgPixmap_t::set_file'.

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

index 8862730fb2129fb52dbe0e79883c0caff4788637..

index ..a49f58f4146755bc1f5b47363609b93fcef2d435 100644

--- a/src/background.C
+++ b/src/background.C
@@ -676,21 +676,19 @@ bgPixmap_t::set_file (const char *file)

   if (*file)
     {
-#  ifdef HAVE_AFTERIMAGE
-      if (!target->asimman)
-        target->asimman = create_generic_imageman (target->rs[Rs_path]);
-
       if (const char *p = strchr (file, ';'))
         {
           size_t len = p - file;
           char *f = rxvt_temp_buf<char> (len + 1);
           memcpy (f, file, len);
           f[len] = '\0';
-          original_asim = get_asimage (target->asimman, f, 0xFFFFFFFF, 100);
+          file = f;
         }
-      else
-        original_asim = get_asimage (target->asimman, file, 0xFFFFFFFF, 100);

+#  ifdef HAVE_AFTERIMAGE
+      if (!target->asimman)
+        target->asimman = create_generic_imageman (target->rs[Rs_path]);
+      original_asim = get_asimage (target->asimman, file, 0xFFFFFFFF, 100);
       return original_asim;
 #  endif
     }

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

-- Response ended

-- Page fetched on Sun Jun 2 12:14:30 2024