mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 20:00:06 +01: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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue