Is there a defined xpixmap width limit?

Michael Stapelberg michael+xorg at stapelberg.de
Fri Apr 22 07:48:15 PDT 2011


Hi Emmanuel,

Excerpts from Emmanuel Thomas-Maurin's message of 2011-04-22 14:31:04 +0200:
> I've been searching for this for a while: Is there a width and height
> limit for xpixmaps? I'm using GTK and I know GDK pixmaps and windows
> can't be wider than 65535. And I suspect for X, it's 32767.
As the width/height fields in the CreatePixmap request are CARD16s, the highest
value is (2^16)-1 = 65535. This is documented in the X protocol, see
http://www.x.org/releases/X11R7.6/doc/xproto/x11protocol.pdf (page 56 in the
pdf).

Best regards,
Michael



More information about the xorg mailing list