xserver/render
Andrea Canciani 806790bd91 render: Fix byteswapping of gradient stops
The function swapStops repeatedly swaps the color components as
CARD16, but incorrectly steps over them as if they were CARD32.

This causes half of the stops not to be swapped at all and some
unrelated data be swapped instead.

Signed-off-by: Andrea Canciani <ranma42@gmail.com>
Reviewed-by: Soren Sandmann <sandmann@daimi.au.dk>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit dab064fa5e)
2010-12-02 15:53:46 -08:00
..
animcur.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
filter.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
glyph.c Place glyph privates at correct location within the allocate storage 2010-06-06 16:22:12 -07:00
glyphstr.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
Makefile.am Export a bunch of matrix operations from render. 2008-11-24 13:24:36 -08:00
matrix.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
miindex.c Quit using clientErrorValue in dix/colormap.c. 2010-05-13 17:14:07 -07:00
mipict.c Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
mipict.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mirect.c Clean up after removal of screen parameters from region macros. 2010-06-05 22:07:21 -07:00
mitrap.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mitri.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
picture.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
picture.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
picturestr.h Make GetPictureScreenIfSet check if Render is running 2010-06-05 21:24:54 -07:00
render.c render: Fix byteswapping of gradient stops 2010-12-02 15:53:46 -08:00
renderedge.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
renderedge.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00