On Fri, May 07, 2010 at 11:19:20PM -0700, Keith Packard wrote:
> +/* per bits per-screen private data */
> +static int miDCCursorBitsKeyIndex[MAXSCREENS];
> +
>  /* per device per-screen private data */
>  static int miDCSpriteKeyIndex[MAXSCREENS];
>  static DevPrivateKey miDCSpriteKey = miDCSpriteKeyIndex;
> @@ -80,6 +83,9 @@ typedef struct {
>    (miDCBufferPtr)dixLookupPrivate(&dev->devPrivates, miDCSpriteKey + 
> (screen)->myNum) : \
>    (miDCBufferPtr)dixLookupPrivate(&dev->u.master->devPrivates, miDCSpriteKey 
> + (screen)->myNum))
>  
> +#define MIDCBITS(screen) \
> +    (miDCCursorBitsKeyIndex + (screen)->myNum)

I guess using array indexing rather than pointer arithmetic just isn't
manly enough? :)

Attachment: pgpAU1ZsahCqa.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to