On 04/22/12 08:01 AM, Lee Fallat wrote:
> XVisualInfo *vlist = XGetVisualInfo(dpy, VisualDepthMask, &template, &nvi);
>
> for(int x = 0; x < nvi; x++)
> {
> if(vlist[x].depth == 32)
> dc.vinfo = &vlist[x];
> }
You don't seem to be handling the case where XGetVisualInfo doesn't return any
visuals of the depth you're requesting.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: [email protected]