No subject


Thu Nov 11 07:19:17 PST 2010


_XRead16Pad (dpy, filters->alias, 2 * rep.numAliases);



  <request name="GetCrtcGamma" opcode="23">
    <field type="CRTC" name="crtc" />
    <reply>
      <pad bytes="1" />
      <field type="CARD16" name="size" />
      <pad bytes="22" />
      <list type="CARD16" name="red">
        <fieldref>size</fieldref>
      </list>
      <list type="CARD16" name="green">
        <fieldref>size</fieldref>
      </list>
      <list type="CARD16" name="blue">
        <fieldref>size</fieldref>
      </list>
</request>

from libXrandr/src/XrrCrtc.c (there is no padding):

_XRead16 (dpy, crtc_gamma->red, rep.size * 2);
_XRead16 (dpy, crtc_gamma->green, rep.size * 2);
_XRead16 (dpy, crtc_gamma->blue, rep.size * 2);



More information about the Xcb mailing list