problem with my uses of the gradient.

2013-05-26 Thread First Last
Hi cairomailing list, I got a problem, when I use this code :     s=cairo_xlib_surface_create(dpy, wndw.frame, DefaultVisual(dpy, 0), 640, 480);     c=cairo_create(s);     p=cairo_pattern_create_linear(10.10,0.10,0.0,450.0);     cairo_pattern_add_color_stop_rgba(p,0,1,0,0,1);  

Re: redraw, who (xlib/cairo), when...

2013-05-26 Thread Glynn Clements
First Last wrote: > So now my problem, I need to redraw the clock, that actualy doesn't > working yet, since I 'm bit lost with "when" and "how" to redraw, if > it's cairoor xlibwho has (or both) to redraw etc. You should redraw the window (or at least the rectangle specified in the XExposeEvent

Re: redraw, who (xlib/cairo), when...

2013-05-26 Thread First Last
Hi Glynn, first thanks. >You should redraw the window (or at least the rectangle specified in >the XExposeEvent structure) in response to an Expose event. Ideally, >you should collect any pending Expose events and perform the minimum >amount of work necessary to redraw the specified rectangles (i