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);
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
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