fill.c (278B)
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 fill(Image *dst, Rectangle r, Color *col) { 8 setgccol(dst, col); 9 XFillRectangle(display, dst->xid, dst->gc, 10 r.min.x, r.min.y, Dx(r), Dy(r)); 11 }