diff options
author | Jocelyn Falempe <jfalempe@redhat.com> | 2022-06-29 10:55:43 +0200 |
---|---|---|
committer | Jocelyn Falempe <jfalempe@redhat.com> | 2022-06-29 11:00:04 +0200 |
commit | b4a105d77232a87304b7b621e2f99e699a8eebd3 (patch) | |
tree | 6e47274827ce6a815316c16f546614d5f131d8ab | |
parent | 285b9a907caffeb979322e629d4e57aa42061b5a (diff) | |
download | pixman-b4a105d77232a87304b7b621e2f99e699a8eebd3.tar.gz |
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 <jfalempe@redhat.com>
-rw-r--r-- | pixman/pixman-fast-path.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |