mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 05:08:02 +02:00
Added patch fix yellow-cursor problem which appears on some Intel Macs
This commit is contained in:
parent
353d0de660
commit
2c8e36ecd1
1 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue