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.20 by root, Fri Jan 6 02:11:15 2006 UTC

279 XNextEvent (display, &xev); 279 XNextEvent (display, &xev);
280 280
281#ifdef USE_XIM 281#ifdef USE_XIM
282 if (!XFilterEvent (&xev, None)) 282 if (!XFilterEvent (&xev, None))
283 { 283 {
284
285 if (xev.type == PropertyNotify 284 if (xev.type == PropertyNotify
286 && xev.xany.window == root 285 && xev.xany.window == root
287 && xev.xproperty.atom == xa_xim_servers) 286 && xev.xproperty.atom == xa_xim_servers)
288 im_change_check (); 287 im_change_check ();
289#endif 288#endif
491 ); 490 );
492 491
493 return faded; 492 return faded;
494} 493}
495 494
496#define LERP(a,b,p) (a * p / 100 + b * (100 - p) / 100) 495#define LERP(a,b,p) (a * p + b * (100 - p)) / 100
497 496
498rxvt_color 497rxvt_color
499rxvt_color::fade (rxvt_display *display, int percent, rxvt_color &fadeto) 498rxvt_color::fade (rxvt_display *display, int percent, rxvt_color &fadeto)
500{ 499{
501 percent = 100 - percent; 500 percent = 100 - percent;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines