wmii

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

convpts.c (301B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "x11.h"
      5 
      6 XPoint*
      7 convpts(Point *pt, int np) {
      8 	XPoint *rp;
      9 	int i;
     10 
     11 	rp = emalloc(np * sizeof *rp);
     12 	for(i = 0; i < np; i++) {
     13 		rp[i].x = pt[i].x;
     14 		rp[i].y = pt[i].y;
     15 	}
     16 	return rp;
     17 }