mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-07 15:40:30 +01:00
Fix RandR 1.2 driver interface conversion of two colour cursors to ARGB
This patch (and not setting HARDWARE_CURSOR_BIT_ORDER_MSBFIRST on big endian platforms) fixes it for me with the radeon driver and doesn't break intel. Correct patch this time :)
This commit is contained in:
parent
f8c1eb29e2
commit
da973e962d
1 changed files with 2 additions and 1 deletions
|
|
@ -137,7 +137,8 @@ cursor_bitpos (int flags, int x, Bool mask)
|
|||
mask = !mask;
|
||||
if (flags & HARDWARE_CURSOR_NIBBLE_SWAPPED)
|
||||
x = (x & ~3) | (3 - (x & 3));
|
||||
if (flags & HARDWARE_CURSOR_BIT_ORDER_MSBFIRST)
|
||||
if (((flags & HARDWARE_CURSOR_BIT_ORDER_MSBFIRST) == 0) ==
|
||||
(X_BYTE_ORDER == X_BIG_ENDIAN))
|
||||
x = (x & ~7) | (7 - (x & 7));
|
||||
if (flags & HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_1)
|
||||
x = (x << 1) + mask;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue