repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 2f7f381ea9a2c01ffcf0fb7e891469b9c072356c:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 2f7f381ea9a2c01ffcf0fb7e891469b9c072356c
Author: Emanuele Giaquinta 
Date:   Sat Jan 22 15:41:19 2011 +0000

    Simplify.

diff --git a/src/background.C b/src/background.C
index 0962b0595b2ce969324c6ece5e8ac4edfee88f56..
index ..869165499c1c12ca40b871fc06773b1a724a767a 100644
--- a/src/background.C
+++ b/src/background.C
@@ -1026,7 +1026,7 @@ bgPixmap_t::set_shade (const char *shade_str)
     {
       unsigned long new_flags = compute_tint_shade_flags ((flags & tintSet) ? &tint : NULL, new_shade);
       shade = new_shade;
-      flags = (flags & (~tintFlags | tintSet)) | new_flags;
+      flags = (flags & ~tintFlags) | new_flags;
       return true;
     }

diff --git a/src/background.h b/src/background.h
index 6a2f98ebab97789289964702286048945de23fe7..
index ..b033bea0ef703f27b7039aa52f1cc21b167aaca2 100644
--- a/src/background.h
+++ b/src/background.h
@@ -30,7 +30,7 @@ struct bgPixmap_t
     tintSet         = 1 <<  8,
     tintNeeded      = 1 <<  9,
     tintWholesome   = 1 << 10,
-    tintFlags       = tintSet | tintNeeded | tintWholesome,
+    tintFlags       = tintNeeded | tintWholesome,

     blurNeeded      = 1 << 11,

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