wmii

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

fillpoly.c (334B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 void
      7 fillpoly(Image *dst, Point *pt, int np, Color *col) {
      8 	XPoint *xp;
      9 
     10 	xp = convpts(pt, np);
     11 	setgccol(dst, col);
     12 	XFillPolygon(display, dst->xid, dst->gc, xp, np, Complex, CoordModeOrigin);
     13 	free(xp);
     14 }