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

14 lines
252 B
C
Raw Normal View History

2010-05-22 06:52:47 +04:00
/* 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;
}