Re: XDrawLine and optimization

2012-03-05 Thread Adam Jackson
On Fri, 2012-03-02 at 13:03 -0900, Christopher Howard wrote: > The code is from conky.c in conky-1.8.1. Before the loop it does one > > code: > -- > XSetLineAttributes(display, window.gc, 1, LineSolid, > CapButt, JoinMiter); > -- Non-zero-width lines are probably a bad idea.

Re: XDrawLine and optimization

2012-03-02 Thread Peter Harris
On 2012-03-02 17:03, Christopher Howard wrote: > On 03/02/2012 12:41 PM, Adam Jackson wrote: >> On 3/2/12 4:21 PM, Christopher Howard wrote: >>> I don't have much (any?) Xlib programming savvy, but before diving >>> headlong into the Programming Manual I was hoping to get some >>> perspective. Ther

Re: XDrawLine and optimization

2012-03-02 Thread Christopher Howard
On 03/02/2012 12:41 PM, Adam Jackson wrote: > On 3/2/12 4:21 PM, Christopher Howard wrote: >> I don't have much (any?) Xlib programming savvy, but before diving >> headlong into the Programming Manual I was hoping to get some >> perspective. There is a particular application I use pretty often, and

Re: XDrawLine and optimization

2012-03-02 Thread Adam Jackson
On 3/2/12 4:21 PM, Christopher Howard wrote: I don't have much (any?) Xlib programming savvy, but before diving headlong into the Programming Manual I was hoping to get some perspective. There is a particular application I use pretty often, and one of the things it does is to draw filled line gra