rectsubpt.c (252B)
1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail> 2 * See LICENSE file for license details. 3 */ 4 #include "../x11.h" 5 6 Rectangle 7 rectsubpt(Rectangle r, Point p) { 8 r.min.x -= p.x; 9 r.max.x -= p.x; 10 r.min.y -= p.y; 11 r.max.y -= p.y; 12 return r; 13 }