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

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.18 by root, Thu Aug 11 02:05:07 2005 UTC vs.
Revision 1.19 by root, Mon Nov 28 19:04:39 2005 UTC

491 ); 491 );
492 492
493 return faded; 493 return faded;
494} 494}
495 495
496#define LERP(a,b,p) (a * p / 100 + b * (100 - p) / 100) 496#define LERP(a,b,p) (a * p + b * (100 - p)) / 100
497 497
498rxvt_color 498rxvt_color
499rxvt_color::fade (rxvt_display *display, int percent, rxvt_color &fadeto) 499rxvt_color::fade (rxvt_display *display, int percent, rxvt_color &fadeto)
500{ 500{
501 percent = 100 - percent; 501 percent = 100 - percent;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines