[hackers] wmii: new tip (= 1766)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Wed, 07 Feb 2007 06:30:04 +0100

changeset: 1766:83d59a0e2c05
tag: tip
user: Denis Grelich <denisg_AT_suckless.org>
date: Wed Feb 07 06:23:47 2007 +0100
files: draw.c
description:
fixed off-by-one in drawing rectangles

diff -r 0c9d51fea8c2 -r 83d59a0e2c05 draw.c
--- a/draw.c Tue Feb 06 22:21:23 2007 -0500
+++ b/draw.c Wed Feb 07 06:23:47 2007 +0100
@@ -153,9 +153,9 @@ drawbg(Display *dpy, Drawable drawable,
         }
         if(!border)
                 return;
- XSetLineAttributes(dpy, gc, 1, LineSolid, CapButt, JoinMiter);
+ XSetLineAttributes(dpy, gc, 0, LineSolid, CapButt, JoinMiter);
         XSetForeground(dpy, gc, c.border);
- XDrawRectangles(dpy, drawable, gc, rect, 1);
+ XDrawRectangle(dpy, drawable, gc, rect->x, rect->y, rect->width - 1, rect->height - 1);
 }
 
 void
Received on Wed Feb 07 2007 - 06:30:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:57 UTC