2
* rect.c -- $Id: rect.c 685 2003-03-08 15:26:51Z travo $
5
* Copyright (c) 2001. See accompanying LEGAL file for details.
12
p_rect(p_win *w, int x0, int y0, int x1, int y1, int border)
15
Display *dpy = s->xdpy->dpy;
16
GC gc = x_getgc(s, w, FillSolid);
18
if (x1 > x0) x1 -= x0;
19
else tmp = x0-x1, x0 = x1, x1 = tmp;
20
if (y1 > y0) y1 -= y0;
21
else tmp = y0-y1, y0 = y1, y1 = tmp;
23
XDrawRectangle(dpy, w->d, gc, x0, y0, x1, y1);
25
XFillRectangle(dpy, w->d, gc, x0, y0, x1, y1);
26
if (p_signalling) p_abort();