[Xcb] XRenderFindVisualFormat

Jeremy Kolb jkolb at brandeis.edu
Wed Dec 15 12:24:33 PST 2004


Vincent Torri wrote:
> I'm not sure, but i would use :
> 
> XCBRenderQueryPictFormatsCookie XCBRenderQueryPictFormats(XCBConnection
> *c);
> 
> XCBRenderQueryPictFormatsRep *XCBRenderQueryPictFormatsReply(XCBConnection
> *c, XCBRenderQueryPictFormatsCookie cookie, XCBGenericError **e);
> 
> XCBRenderPICTSCREENIter
> XCBRenderQueryPictFormatsScreensIter(XCBRenderQueryPictFormatsRep *R);
> 
> i would give the 'data' field of the XCBRenderPICTSCREENIter to this
> function:
> 
> XCBRenderPICTDEPTHIter XCBRenderPICTSCREENDepthsIter(XCBRenderPICTSCREEN
> *R);
> 
> i would give the 'data' field of the XCBRenderPICTDEPTHIter to this
> function:
> 
> XCBRenderPICTVISUALIter XCBRenderPICTDEPTHVisualsIter(XCBRenderPICTDEPTH
> *R);
> 
> then the 'format' field of the XCBRenderPICTVISUALIter struct
> 
> (of course, it's in the render extension (render.h))
> 
> regards
> 
> Vincent TORRI
> 

All that to replace one function in xlib? Ewwwwww.

Jeremy


More information about the xcb mailing list