ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.C
(Generate patch)

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.122 by sf-exg, Sat Nov 20 11:30:58 2010 UTC vs.
Revision 1.124 by sf-exg, Tue Nov 23 16:37:36 2010 UTC

940 bool has_shade = shade != 100; 940 bool has_shade = shade != 100;
941 941
942 if (tint) 942 if (tint)
943 { 943 {
944 tint->get (c); 944 tint->get (c);
945# define IS_COMPONENT_WHOLESOME(cmp) ((cmp) <= 0x000700 || (cmp) >= 0x00f700) 945# define IS_COMPONENT_WHOLESOME(cmp) ((cmp) <= 0x00ff || (cmp) >= 0xff00)
946 if (!has_shade 946 if (!has_shade
947 && IS_COMPONENT_WHOLESOME (c.r) 947 && IS_COMPONENT_WHOLESOME (c.r)
948 && IS_COMPONENT_WHOLESOME (c.g) 948 && IS_COMPONENT_WHOLESOME (c.g)
949 && IS_COMPONENT_WHOLESOME (c.b)) 949 && IS_COMPONENT_WHOLESOME (c.b))
950 flags |= bgPixmap_t::tintWholesome; 950 flags |= bgPixmap_t::tintWholesome;
951# undef IS_COMPONENT_WHOLESOME 951# undef IS_COMPONENT_WHOLESOME
952 } 952 }
953 953
954 if (has_shade) 954 if (has_shade || tint)
955 flags |= bgPixmap_t::tintNeeded; 955 flags |= bgPixmap_t::tintNeeded;
956 else if (tint)
957 {
958 if ((c.r > 0x000700 || c.g > 0x000700 || c.b > 0x000700)
959 && (c.r < 0x00f700 || c.g < 0x00f700 || c.b < 0x00f700))
960 {
961 flags |= bgPixmap_t::tintNeeded;
962 }
963 }
964 956
965 return flags; 957 return flags;
966} 958}
967 959
968bool 960bool

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines