From: YAMAMOTO Mitsuharu Date: Sun, 4 May 2008 00:31:59 +0000 (+0000) Subject: [USE_MAC_IMAGE_IO] (image_load_image_io): X-Git-Tag: emacs-pretest-22.2.90~146 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c756529297924c325f207cdb929056458945ae3;p=emacs.git [USE_MAC_IMAGE_IO] (image_load_image_io): Create bitmap context in native byte order. --- 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;