Added patch fix yellow-cursor problem which appears on some Intel Macs

This commit is contained in:
Ben Byer 2007-10-29 16:18:48 -07:00
parent 353d0de660
commit 2c8e36ecd1

View file

@ -83,8 +83,17 @@ load_cursor(CursorPtr src, int screen)
#ifdef ARGB_CURSOR #ifdef ARGB_CURSOR
if (src->bits->argb != NULL) if (src->bits->argb != NULL)
{ {
rowbytes = src->bits->width * sizeof(CARD32); #if BITMAP_BIT_ORDER == MSBFirst
rowbytes = src->bits->width * sizeof (CARD32);
data = (uint32_t *) src->bits->argb; data = (uint32_t *) src->bits->argb;
#else
const uint32_t *be_data=(uint32_t *) src->bits->argb;
unsigned i;
rowbytes = src->bits->width * sizeof (CARD32);
data=alloca (rowbytes * src->bits->height);
for(i=0;i<(src->bits->width*src->bits->height);i++)
data[i]=ntohl(be_data[i]);
#endif
} }
else else
#endif #endif