summaryrefslogtreecommitdiff
path: root/hw/xfree86
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-03-19 19:12:37 -0400
committerAlex Deucher <alex@cube.(none)>2008-03-19 19:12:37 -0400
commit267352579612155adfd4743432d6569b2cdeebde (patch)
tree1748ce638a7b41cc96224511e7613bb5931532c0 /hw/xfree86
parent060a99444ee25a684b0ab9b4819bf8e855aea2d8 (diff)
Fix RandR 1.2 driver interface conversion of two colour cursors to ARGB
See bug 11796
Diffstat (limited to 'hw/xfree86')
-rw-r--r--hw/xfree86/modes/xf86Cursors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Cursors.c b/hw/xfree86/modes/xf86Cursors.c
index 08cf78d82..4fe94f3c6 100644
--- a/hw/xfree86/modes/xf86Cursors.c
+++ b/hw/xfree86/modes/xf86Cursors.c
@@ -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;