wmii

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

drawline.c (359B)


      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 drawline(Image *dst, Point p1, Point p2, int cap, int w, Color *col) {
      8 	XSetLineAttributes(display, dst->gc, w, LineSolid, cap, JoinMiter);
      9 	setgccol(dst, col);
     10 	XDrawLine(display, dst->xid, dst->gc, p1.x, p1.y, p2.x, p2.y);
     11 }