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.6 by root, Sat Dec 11 17:18:29 2004 UTC vs.
Revision 1.7 by root, Wed Dec 15 00:53:23 2004 UTC

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