From 4c756529297924c325f207cdb929056458945ae3 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Sun, 4 May 2008 00:31:59 +0000 Subject: [PATCH] [USE_MAC_IMAGE_IO] (image_load_image_io): Create bitmap context in native byte order. --- src/image.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index eb1cae853f1..9981b21365a 100644 --- a/src/image.c +++ b/src/image.c @@ -2681,7 +2681,11 @@ image_load_image_io (f, img, type) context = CGBitmapContextCreate (ximg->data, ximg->width, ximg->height, 8, ximg->bytes_per_line, mac_cg_color_space_rgb, - kCGImageAlphaNoneSkipFirst); + kCGImageAlphaNoneSkipFirst +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 + | kCGBitmapByteOrder32Host +#endif + ); if (has_alpha_p) { Lisp_Object specified_bg; -- 2.39.2