repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: f97b3ec22ab1da4da65d37cb858d97d9f5d98932:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit f97b3ec22ab1da4da65d37cb858d97d9f5d98932
Author: Emanuele Giaquinta 
Date:   Sun May 13 15:28:44 2012 +0000

    Simplify.

diff --git a/src/background.C b/src/background.C
index 56cfd6d98615f496f50ab057413379bcd932fd3b..
index ..b82188b76cfbe434c149506d2deeec9cf753466d 100644
--- a/src/background.C
+++ b/src/background.C
@@ -664,18 +664,6 @@ rxvt_term::bg_set_file (const char *file)
 # endif /* BG_IMAGE_FROM_FILE */

 # ifdef ENABLE_TRANSPARENCY
-bool
-rxvt_term::bg_set_transparent ()
-{
-  if (!(bg_flags & BG_IS_TRANSPARENT))
-    {
-      bg_flags |= BG_IS_TRANSPARENT;
-      return true;
-    }
-
-  return false;
-}
-
 bool
 rxvt_term::bg_set_blur (const char *geom)
 {
diff --git a/src/rxvt.h b/src/rxvt.h
index 29f1e60e2fb278beaf61916d1655ac2bac925f00..
index ..1c35efd4660d4fe03a2c5b8da77e05c10371ed09 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1142,7 +1142,10 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen
   int         shade;
   int         h_blurRadius, v_blurRadius;

-  bool bg_set_transparent ();
+  void bg_set_transparent ()
+  {
+    bg_flags |= BG_IS_TRANSPARENT;
+  }
   void bg_set_root_pixmap ();
   void set_tint_shade_flags ();
   bool bg_set_tint (rxvt_color &new_tint);

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