[PATCH 3/5] GetScreenSizeRange: Document funky return code in the header

Eamon Walsh ewalsh at tycho.nsa.gov
Tue Nov 10 10:16:52 PST 2009


On 11/09/2009 05:56 PM, Adam Jackson wrote:
>  
> +/* despite returning a Status, this returns 1 for success */
>  Status
>  XRRGetScreenSizeRange (Display *dpy, Window window,
>  		       int *minWidth, int *minHeight,
>   


FWIW, I've noticed this is somewhat common in Xlib.  Other functions
that do this are XAllocColor, XSendEvent, XQueryTree, XGetTextProperty.



-- 

Eamon Walsh 
National Security Agency



More information about the xorg-devel mailing list