aewl

diff draw.c @ 235:60e73ebaab27

removed unnecessary border color
author Anselm R.Garbe <arg@10ksloc.org>
date Thu, 10 Aug 2006 10:27:08 +0200
parents c674a0baac63
children ebecb98a1c29
line diff
     1.1 --- a/draw.c	Thu Aug 10 10:22:15 2006 +0200
     1.2 +++ b/draw.c	Thu Aug 10 10:27:08 2006 +0200
     1.3 @@ -9,26 +9,6 @@
     1.4  
     1.5  /* static */
     1.6  
     1.7 -static void
     1.8 -drawborder(void)
     1.9 -{
    1.10 -	XPoint points[5];
    1.11 -
    1.12 -	XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
    1.13 -	XSetForeground(dpy, dc.gc, dc.border);
    1.14 -	points[0].x = dc.x;
    1.15 -	points[0].y = dc.y;
    1.16 -	points[1].x = dc.w - 1;
    1.17 -	points[1].y = 0;
    1.18 -	points[2].x = 0;
    1.19 -	points[2].y = dc.h - 1;
    1.20 -	points[3].x = -(dc.w - 1);
    1.21 -	points[3].y = 0;
    1.22 -	points[4].x = 0;
    1.23 -	points[4].y = -(dc.h - 1);
    1.24 -	XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);
    1.25 -}
    1.26 -
    1.27  static unsigned int
    1.28  textnw(const char *text, unsigned int len)
    1.29  {
    1.30 @@ -52,7 +32,6 @@
    1.31  
    1.32  	XSetForeground(dpy, dc.gc, invert ? dc.fg : dc.bg);
    1.33  	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
    1.34 -	drawborder();
    1.35  
    1.36  	if(!text)
    1.37  		return;