7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-04 22:25:30 +00:00

Cairo GAL: fix endianness check.

(cherry picked from commit c4a7af8a47)
This commit is contained in:
Alex Shvartzkop 2024-02-28 04:10:58 +03:00 committed by dsa-t
parent 3582edb185
commit 97e3139505

View File

@ -1425,7 +1425,7 @@ void CAIRO_GAL::EndDrawing()
{
const unsigned char* src = srcRow + x;
#if defined( __BYTE_ORDER__ ) && ( __BYTE_ORDER == __BIG_ENDIAN )
#if defined( __BYTE_ORDER__ ) && ( __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ )
// XRGB
dst[0] = src[1];
dst[1] = src[2];