[PATCH 3/4] Create separate private key for midispcur cursor bits

Daniel Stone daniel at fooishbar.org
Sun May 9 21:05:42 PDT 2010


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? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100510/c3e4ca80/attachment.pgp>


More information about the xorg-devel mailing list