-- 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:
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
--- 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
--- 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