Mercurial > emacs
changeset 80554:831994031d63
[USE_MAC_IMAGE_IO] (image_load_image_io):
Create bitmap context in native byte order.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Sun, 04 May 2008 00:31:59 +0000 |
parents | ca81a7bed370 |
children | e8b63103e36b |
files | src/image.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;