Re: How to draw Cairo graphic in a Motif drawing widget

Adam Jackson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Tue, 2016-05-10 at 16:54 +0000, George Wu wrote:

>     dpy = XtDisplay(draw);
>     win = XtWindow(draw);

win is 0 here, which isn't a valid ID, so...

>     sfc = cairo_xlib_surface_create(dpy, win, DefaultVisual(dpy, scrnum),
> Width, Height);

... this creates an invalid surface.

Now, why win is zero, I couldn't say.

- ajax
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.