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

git.thebackupbox.net

rxvt-unicode-sixel

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

commit d9ccd279f73ab024e4585ab1a085ff8d7064f44f
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Sun May 20 16:23:42 2012 +0000

    Simplify.

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

index 0e0d0d9a125087ffd007ae1205349b602deb6a2a..

index ..12295e235ea8e112ba38ba237e333e2fcfd7e5a8 100644

--- a/src/background.C
+++ b/src/background.C
@@ -646,17 +646,18 @@ rxvt_image::set_file (const char *file)
       if (pixbuf)
         g_object_unref (pixbuf);
       pixbuf = image;
-      flags |= IM_IS_SET;
       ret = true;
     }
 #  endif

   if (ret)
     {
+      flags = IM_IS_SET | IM_IS_SIZE_SENSITIVE;
+      h_scale = v_scale = defaultScale;
+      h_align = v_align = defaultAlign;
+
       if (p)
         set_geometry (p + 1);
-      else
-        set_default_geometry ();
     }

   return ret;
diff --git a/src/rxvt.h b/src/rxvt.h

index 6e9f4c0b8a8e8e86ae1756e19a918c9d43e8b597..

index ..8f797a8a3f0f4cb0f138907e5ec6fa2810e106e7 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -258,12 +258,6 @@ struct rxvt_image

   bool set_file (const char *file);
   bool set_geometry (const char *geom, bool update = false);
-  void set_default_geometry ()
-  {
-    h_scale = v_scale = defaultScale;
-    h_align = v_align = defaultAlign;
-    flags |= IM_IS_SIZE_SENSITIVE;
-  }
 };
 # endif
 #endif

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

-- Response ended

-- Page fetched on Sun Jun 2 10:13:25 2024