mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-16 05:00:45 +01:00
quartz: fallback for A1 images on little endian archs
Quartz uses a bit ordering that is consistent with cairo on big endian architectures, but isn't on little endian architectures. Fixes a1-mask and large-source-roi (on little endian)
This commit is contained in:
parent
f40e3b09a1
commit
ac94a00a4d
1 changed files with 2 additions and 0 deletions
|
|
@ -208,9 +208,11 @@ _cairo_quartz_create_cgimage (cairo_format_t format,
|
|||
break;
|
||||
|
||||
case CAIRO_FORMAT_A1:
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
bitsPerComponent = 1;
|
||||
bitsPerPixel = 1;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue