mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 12:19:10 +00:00
Fix RandR 1.2 driver interface conversion of two colour cursors to ARGB
See bug 11796
This commit is contained in:
committed by
Alex Deucher
parent
060a99444e
commit
2673525796
@@ -137,7 +137,9 @@ cursor_bitpos (int flags, int x, Bool mask)
|
||||
mask = !mask;
|
||||
if (flags & HARDWARE_CURSOR_NIBBLE_SWAPPED)
|
||||
x = (x & ~3) | (3 - (x & 3));
|
||||
#if X_BYTE_ORDER == X_LITTLE_ENDIAN
|
||||
if (flags & HARDWARE_CURSOR_BIT_ORDER_MSBFIRST)
|
||||
#endif
|
||||
x = (x & ~7) | (7 - (x & 7));
|
||||
if (flags & HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_1)
|
||||
x = (x << 1) + mask;
|
||||
|
||||
Reference in New Issue
Block a user