Is there a defined xpixmap width limit?

Corbin Simpson mostawesomedude at gmail.com
Fri Apr 22 09:35:10 PDT 2011


On Fri, Apr 22, 2011 at 8:44 AM, Emmanuel Thomas-Maurin
<manutm007 at gmail.com> wrote:
> On 04/22/2011 04:48 PM, Michael Stapelberg wrote:
>> 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
>
> Thanks Michael, that's what I was looking for. Maybe the results I got
> from the test come from some specific implementation that's not 100 %
> fully compliant with the protocol but that's really not that important
> anyways.

IIRC there is a sign bug in the wire protocol which halves the actual limit.

~ C.

-- 
When the facts change, I change my mind. What do you do, sir? ~ Keynes

Corbin Simpson
<MostAwesomeDude at gmail.com>



More information about the xorg mailing list