[PATCH] Fix byte swaping code for RENDER Create*Gradient opcodes
y
y
Sun Dec 6 11:57:10 PST 2009
From: Tomas Carnecky <tom at dbservice.com>
Signed-off-by: Tomas Carnecky <tom at dbservice.com>
---
render/render.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/render/render.c b/render/render.c
index a32d797..45856a7 100644
--- a/render/render.c
+++ b/render/render.c
@@ -2555,10 +2555,11 @@ static void swapStops(void *stuff, int num)
swapl(stops, n);
++stops;
}
+
colors = (CARD16 *)(stops);
for (i = 0; i < 4*num; ++i) {
- swaps(stops, n);
- ++stops;
+ swaps(colors, n);
+ ++colors;
}
}
--
1.6.5.4
More information about the xorg-devel
mailing list