~kiko/pixman/trunk

« back to all changes in this revision

Viewing changes to pixman/pixman-fast-path.c

  • Committer: Jocelyn Falempe
  • Date: 2022-06-29 09:00:04 UTC
  • Revision ID: git-v1:b4a105d77232a87304b7b621e2f99e699a8eebd3
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>

Show diffs side-by-side

added added

removed removed

Lines of Context:
2836
2836
        sgtot = CLIP (sgtot, 0, 0xff);
2837
2837
        sbtot = CLIP (sbtot, 0, 0xff);
2838
2838
 
 
2839
#ifdef WORDS_BIGENDIAN
 
2840
        buffer[k] = (satot << 0) | (srtot << 8) | (sgtot << 16) | (sbtot << 24);
 
2841
#else
2839
2842
        buffer[k] = (satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot << 0);
 
2843
#endif
2840
2844
 
2841
2845
    next:
2842
2846
        vx += ux;