Keith Packard <[EMAIL PROTECTED]> wrote:
> 
> heh.  Looks like there's a byteswapping bug in XRandR.  Nice catch.
> 
> Note that the erroneous value (0x100) is a byteswapped short from the
> valid value (0x1).  Then note that the value isn't byteswapped in the X
> server.
> 
> Fix follows.
> 
> -keith
> 
> Index: randr.c
> ===================================================================
> RCS file: /cvs/xserver/xserver/randr/randr.c,v
> retrieving revision 1.21
> diff -u -r1.21 randr.c
> --- randr.c     11 Sep 2003 05:12:51 -0000      1.21
> +++ randr.c     20 Jan 2005 04:39:01 -0000
> @@ -1072,6 +1072,7 @@
> 
>      swaps(&stuff->length, n);
>      swapl(&stuff->window, n);
> +    swaps(&stuff->enable, n);
>      return ProcRRSelectInput(client);
>  }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to