Skip to content

Commit

Permalink
Added patch fix yellow-cursor problem which appears on some Intel Macs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Byer committed Oct 29, 2007
1 parent 353d0de commit 2c8e36e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hw/darwin/quartz/xpr/xprCursor.c
Expand Up @@ -83,8 +83,17 @@ load_cursor(CursorPtr src, int screen)
#ifdef ARGB_CURSOR
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;
#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
#endif
Expand Down

0 comments on commit 2c8e36e

Please sign in to comment.