# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1209861119 0 # Node ID 831994031d63ab6133173dc3ffc18c8ededbe147 # Parent ca81a7bed370d4256822b32d34c15f7cfb0cb6e5 [USE_MAC_IMAGE_IO] (image_load_image_io): Create bitmap context in native byte order. diff -r ca81a7bed370 -r 831994031d63 src/image.c --- a/src/image.c Sat May 03 19:04:09 2008 +0000 +++ b/src/image.c Sun May 04 00:31:59 2008 +0000 @@ -2681,7 +2681,11 @@ 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;