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.8 by ayin, Sat Oct 27 15:14:55 2007 UTC vs.
Revision 1.9 by sasha, Mon Oct 29 13:39:43 2007 UTC

741bool 741bool
742bgPixmap_t::set_shade (const char *shade_str) 742bgPixmap_t::set_shade (const char *shade_str)
743{ 743{
744 int new_shade = (shade_str) ? atoi (shade_str) : 0; 744 int new_shade = (shade_str) ? atoi (shade_str) : 0;
745 745
746 if (new_shade < 0 && new_shade > -100)
747 new_shade = 200 - (100 + new_shade);
746 if (new_shade == 100) 748 else if (new_shade == 100)
747 new_shade = 0; 749 new_shade = 0;
748 750
749 if (new_shade != shade) 751 if (new_shade != shade)
750 { 752 {
751 unsigned long new_flags = compute_tint_shade_flags ((flags & tintSet) ? &tint : NULL, new_shade); 753 unsigned long new_flags = compute_tint_shade_flags ((flags & tintSet) ? &tint : NULL, new_shade);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines