]> git.eshelyaron.com Git - emacs.git/commitdiff
[USE_MAC_IMAGE_IO] (image_load_image_io):
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sun, 4 May 2008 00:31:59 +0000 (00:31 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sun, 4 May 2008 00:31:59 +0000 (00:31 +0000)
Create bitmap context in native byte order.

src/image.c

index eb1cae853f155d409ccf4e134691d830ce403f71..9981b21365a980b3c3d4d9fe9f37fce17ecce5eb 100644 (file)
@@ -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;