aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2008-05-04 00:31:59 +0000
committerYAMAMOTO Mitsuharu2008-05-04 00:31:59 +0000
commit4c756529297924c325f207cdb929056458945ae3 (patch)
tree2e4bdee42b1c625de4d3efe95b3dfdabe5d5f443 /src
parente0e02da34cd8081fc3704d4b882213cabc55a68e (diff)
downloademacs-4c756529297924c325f207cdb929056458945ae3.tar.gz
emacs-4c756529297924c325f207cdb929056458945ae3.zip
[USE_MAC_IMAGE_IO] (image_load_image_io):
Create bitmap context in native byte order.
Diffstat (limited to 'src')
-rw-r--r--src/image.c6
1 files changed, 5 insertions, 1 deletions
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)
2681 context = CGBitmapContextCreate (ximg->data, ximg->width, ximg->height, 8, 2681 context = CGBitmapContextCreate (ximg->data, ximg->width, ximg->height, 8,
2682 ximg->bytes_per_line, 2682 ximg->bytes_per_line,
2683 mac_cg_color_space_rgb, 2683 mac_cg_color_space_rgb,
2684 kCGImageAlphaNoneSkipFirst); 2684 kCGImageAlphaNoneSkipFirst
2685#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
2686 | kCGBitmapByteOrder32Host
2687#endif
2688 );
2685 if (has_alpha_p) 2689 if (has_alpha_p)
2686 { 2690 {
2687 Lisp_Object specified_bg; 2691 Lisp_Object specified_bg;