+2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
+ Create bitmap context in native byte order.
+
+ * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]:
+ Create bitmap context in native byte order.
+
2008-05-03 Eli Zaretskii <eliz@gnu.org>
* dired.c (Ffile_attributes): Don't allow the device number become
if (ximg->bits_per_pixel == 32)
{
color_space = mac_cg_color_space_rgb;
- alpha_info = kCGImageAlphaNoneSkipFirst;
+ alpha_info = (kCGImageAlphaNoneSkipFirst
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
+ | kCGBitmapByteOrder32Host
+#endif
+ );
}
else
{
context = CGBitmapContextCreate (pixmap->data, width, height, 8,
pixmap->bytes_per_line,
mac_cg_color_space_rgb,
- kCGImageAlphaNoneSkipFirst);
+ kCGImageAlphaNoneSkipFirst
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
+ | kCGBitmapByteOrder32Host
+#endif
+ );
CG_SET_FILL_COLOR (context, fg);
CGContextFillRect (context, CGRectMake (0, 0, width, height));