Hi Xperts,

Just subscribed to this list to ask a question at the suggestion
of someone on #xfree86 ...

I've got a program to display output of a black & white CCD camera.
The program currently works well on 8bit display & code is written
for 24bit display (I'm not able to test it at that resolution) ...
I'm trying to modify it so the program will work for 16bit display ...

I've come across this snippet of code, which I think is causing my
problems. The call to XMatchVisualInfo() fails. I don't really
understand why - can anyone help me out here? What do I need to do
to make it succeed?

// Get visual for colormap
if (!XMatchVisualInfo(display_, screen_, display_depth_, StaticGray, &visual_info_) )
{
        puts("ERROR: XVideoDisplay::open() Could Not Get StaticGray Visual Using 
Default");
        visual_ = XDefaultVisual(display_, screen_);
}
else
{
        visual_ = visual_info_.visual;
} 

Thanks for any help,

SCoTT! :)
[EMAIL PROTECTED]
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to