wmii/lib/libstuff/x11/geometry/rectaddpt.c

14 lines
252 B
C

/* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "../x11.h"
Rectangle
rectaddpt(Rectangle r, Point p) {
r.min.x += p.x;
r.max.x += p.x;
r.min.y += p.y;
r.max.y += p.y;
return r;
}