mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
18 lines
302 B
C
18 lines
302 B
C
/* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
|
|
* See LICENSE file for license details.
|
|
*/
|
|
#include "x11.h"
|
|
|
|
XPoint*
|
|
convpts(Point *pt, int np) {
|
|
XPoint *rp;
|
|
int i;
|
|
|
|
rp = emalloc(np * sizeof *rp);
|
|
for(i = 0; i < np; i++) {
|
|
rp[i].x = pt[i].x;
|
|
rp[i].y = pt[i].y;
|
|
}
|
|
return rp;
|
|
}
|