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

Comparing rxvt-unicode/src/rxvtcolor.C (file contents):
Revision 1.18 by root, Fri Jul 30 14:12:38 2004 UTC vs.
Revision 1.19 by root, Fri Jul 30 14:59:12 2004 UTC

407#else 407#else
408 XFreeColors (display->display, display->cmap, &p, 1, AllPlanes); 408 XFreeColors (display->display, display->cmap, &p, 1, AllPlanes);
409#endif 409#endif
410} 410}
411 411
412rxvt_color
413rxvt_color::fade (rxvt_display *display, int percent)
414{
415 unsigned short cr, cg, cb;
416 rxvt_color faded;
417
418 get (display, cr, cg, cb);
419 faded.set (display,
420 cr * percent / 100,
421 cg * percent / 100,
422 cb * percent / 100);
423
424 return faded;
425}
426

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines