From b4a105d77232a87304b7b621e2f99e699a8eebd3 Mon Sep 17 00:00:00 2001 From: Jocelyn Falempe Date: Wed, 29 Jun 2022 10:55:43 +0200 Subject: Fix inverted colors on big endian system bits_image_fetch_separable_convolution_affine() didn't take care of big endian system Signed-off-by: Jocelyn Falempe --- pixman/pixman-fast-path.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-path.c index 4b7a6f8..fa5ea03 100644 --- a/pixman/pixman-fast-path.c +++ b/pixman/pixman-fast-path.c @@ -2836,7 +2836,11 @@ bits_image_fetch_separable_convolution_affine (pixman_image_t * image, sgtot = CLIP (sgtot, 0, 0xff); sbtot = CLIP (sbtot, 0, 0xff); +#ifdef WORDS_BIGENDIAN + buffer[k] = (satot << 0) | (srtot << 8) | (sgtot << 16) | (sbtot << 24); +#else buffer[k] = (satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot << 0); +#endif next: vx += ux; -- cgit v1.2.1