help badmatch making bit win on bit server i m trying to make a bit window using xcreatewindow on a bit pseudocolor server as far as i know this should be possible if you server supports a truecolor or directcolor visual i m using a sun ipc with a rasterflex card running xdpyinfo gives screen dimensions x pixels x millimeters resolution x dots per inch depths root window id x depth of root window planes number of colormaps minimum maximum default colormap x number of visuals default visual id x visual visual id x class pseudocolor depth planes size of colormap entries red green blue masks x x x significant bits in color specification bits visual visual id x a class truecolor depth planes size of colormap entries red green blue masks xff xff xff significant bits in color specification bits visual visual id x b class directcolor depth planes size of colormap entries red green blue masks xff xff xff significant bits in color specification bits my code looks like this if xio dspptr xopendisplay null null logexit cannot connect to x server s xdisplayname null xio scr defaultscreen xio dspptr use this screen if xmatchvisualinfo xio dspptr xio scr directcolor xtern colorinfo memset setwinattrib sizeof xsetwindowattributes xio gswin xcreatewindow xio dspptr rootwindow xio dspptr xio scr x y w h inputoutput xtern colorinfo setwinattrib this results in a badmatch error can anyone please tell me why henrik winther nielsen ccccccc ii basic development cc cccc cci europe mail hwn cci dk cc cc ii oester parkvej phone cc cccc ii dk hoejbjerg ccccccc ii denmark e u r o p e
