title: 16 bit limit on XDrawString arguments
body: <p>From the XDrawString <a href="http://www.xfree86.org/current/XDrawString.3.html" rel="nofollow noreferrer">man page</a> it seems that it aceepts signed 32 bit x and y coordinates</p>
  
  <blockquote>
    <p><code>int XDrawString(Display *display, Drawable d, GC
        gc, int x, int y, char *string, int length);</code></p>
  </blockquote>
  
  <p>Note how both x and y are int ( ie: 32 bit signed Integer on gcc/linux2.6-i386 at least )</p>
  
  <p>The problem is when I pass <code>y = 32767</code> ( 2^15 - 1) the string is drawn in the correct location but anything above this value the string is not drawn.</p>
  
  <p>I suspect that internally 32 bit integers are not used but instead 16 bit signed integers for the coordinates. </p>
  
  <p>Given that the man pages seem to indicate that the function accepts 32 bit integers, is there some compile option that needs to be turned to allow the use of the longer integers? Or is this a limmitation of Xlib?</p>