wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

xftcolor.c (312B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 XftColor*
      7 xftcolor(Image *i, Color *c) {
      8 	XftColor *xc;
      9 
     10 	xc = emallocz(sizeof *c);
     11 	*xc = (XftColor){ pixelvalue(i, c), c->red, c->green, c->blue, c->alpha };
     12 	return freelater(xc);
     13 }