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.5 by root, Tue Sep 7 12:34:05 2004 UTC vs.
Revision 1.7 by root, Wed Dec 15 00:53:23 2004 UTC

268 } 268 }
269#ifdef USE_XIM 269#ifdef USE_XIM
270 } 270 }
271#endif 271#endif
272 } 272 }
273 while (XPending (display)); 273 while (XEventsQueued (display, QueuedAlready));
274 274
275 flush (); 275 flush ();
276} 276}
277 277
278void rxvt_display::flush () 278void rxvt_display::flush ()
386} 386}
387 387
388bool 388bool
389rxvt_color::set (rxvt_display *display, const char *name) 389rxvt_color::set (rxvt_display *display, const char *name)
390{ 390{
391#if XFT
392 return XftColorAllocName (display->display, display->visual, display->cmap,
393 name, &c);
394#else
391 XColor xc; 395 XColor xc;
392 396
393 if (XParseColor (display->display, display->cmap, name, &xc)) 397 if (XParseColor (display->display, display->cmap, name, &xc))
394 return set (display, xc.red, xc.green, xc.blue); 398 return set (display, xc.red, xc.green, xc.blue);
395 399
396 return false; 400 return false;
401#endif
397} 402}
398 403
399bool 404bool
400rxvt_color::set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb) 405rxvt_color::set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb)
401{ 406{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines