wmii

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

copyimage.c (300B)


      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 copyimage(Image *dst, Rectangle r, Image *src, Point p) {
      8 	XCopyArea(display,
      9 		  src->xid, dst->xid,
     10 		  dst->gc,
     11 		  r.min.x, r.min.y, Dx(r), Dy(r),
     12 		  p.x, p.y);
     13 }