[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/macterm.c,v [EMACS_22_BASE]
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] Changes to emacs/src/macterm.c,v [EMACS_22_BASE] |
Date: |
Sun, 04 May 2008 00:32:14 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Branch: EMACS_22_BASE
Changes by: YAMAMOTO Mitsuharu <mituharu> 08/05/04 00:32:14
Index: macterm.c
===================================================================
RCS file: /sources/emacs/emacs/src/macterm.c,v
retrieving revision 1.214.2.20
retrieving revision 1.214.2.21
diff -u -b -r1.214.2.20 -r1.214.2.21
--- macterm.c 2 May 2008 09:39:23 -0000 1.214.2.20
+++ macterm.c 4 May 2008 00:32:13 -0000 1.214.2.21
@@ -415,7 +415,11 @@
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
{
@@ -743,7 +747,11 @@
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));