[Xcb] use of xcb_poly_text_8

Vincent Torri vtorri at univ-evry.fr
Tue Jan 23 04:11:52 PST 2007


Hey,

I'm trying to display a string with the xcb_poly_text_8 function. That 
text is "hello, world". My call is:

cookie_text = xcb_poly_text_8_checked (c, window, gc, x, y,
                                        strlen(text), text);

I catch an error #16 (wrong length). I look at the XDrawString function, 
which is completely unreadable, but the length passed to the PolyText8 
request is not the string length.

Can someone explain me what I should pass as length to that function ?

thank you

Vincent


More information about the Xcb mailing list