diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-06-30 01:36:15 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-06-30 01:36:15 +0100 |
commit | 26b9f3de0ffe471e5335b07454147457e373c037 (patch) | |
tree | 5480fedbc318d490a4e90c2104d6ba8c26258698 /draw/drawsquare.c | |
parent | 7afd296c40a2e8af9477add1c3d02a7c4b444747 (diff) |
libdraw now has own repo
Diffstat (limited to 'draw/drawsquare.c')
-rw-r--r-- | draw/drawsquare.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/draw/drawsquare.c b/draw/drawsquare.c deleted file mode 100644 index 8899043..0000000 --- a/draw/drawsquare.c +++ /dev/null @@ -1,19 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <X11/Xlib.h> -#include "draw.h" - -void -drawsquare(DC *dc, Bool filled, unsigned long col[ColLast], Bool invert) { - int n; - XRectangle r = { dc->x, dc->y, dc->w, dc->h }; - - XSetForeground(dc->dpy, dc->gc, col[invert ? ColBG : ColFG]); - n = ((dc->font.ascent + dc->font.descent + 2) / 4) + (filled ? 1 : 0); - r.width = r.height = n; - r.x = dc->x + 1; - r.y = dc->y + 1; - if(filled) - XFillRectangles(dc->dpy, dc->drawable, dc->gc, &r, 1); - else - XDrawRectangles(dc->dpy, dc->drawable, dc->gc, &r, 1); -} |