Commit 91b953ac authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

(XDrawLine, XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]:

Remove conditionals for kCGBitmapByteOrder32Host.
parent 1802dc0c
......@@ -415,11 +415,7 @@ XDrawLine (display, p, gc, x1, y1, x2, y2)
if (ximg->bits_per_pixel == 32)
{
color_space = mac_cg_color_space_rgb;
alpha_info = (kCGImageAlphaNoneSkipFirst
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
| kCGBitmapByteOrder32Host
#endif
);
alpha_info = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Host;
}
else
{
......@@ -748,10 +744,7 @@ XCreatePixmapFromBitmapData (display, w, data, width, height, fg, bg, depth)
pixmap->bytes_per_line,
mac_cg_color_space_rgb,
kCGImageAlphaNoneSkipFirst
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
| kCGBitmapByteOrder32Host
#endif
);
| kCGBitmapByteOrder32Host);
CG_SET_FILL_COLOR (context, fg);
CGContextFillRect (context, CGRectMake (0, 0, width, height));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment