mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 11:17:15 +03:00
fix byteorder for bitmaps on macos
This commit is contained in:
parent
0b7556893d
commit
da90ad7ec6
@ -1,5 +1,7 @@
|
||||
use crate::bitmaps::BitmapImage;
|
||||
use core_graphics::base::{kCGImageAlphaPremultipliedFirst, kCGRenderingIntentDefault};
|
||||
use core_graphics::base::{
|
||||
kCGBitmapByteOrder32Little, kCGImageAlphaPremultipliedFirst, kCGRenderingIntentDefault,
|
||||
};
|
||||
use core_graphics::color_space::CGColorSpace;
|
||||
use core_graphics::data_provider::CGDataProvider;
|
||||
use core_graphics::image::CGImage;
|
||||
@ -45,7 +47,7 @@ impl<'a> BitmapRef<'a> {
|
||||
32,
|
||||
bytes_per_row,
|
||||
&CGColorSpace::create_device_rgb(),
|
||||
kCGImageAlphaPremultipliedFirst,
|
||||
kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little,
|
||||
&provider,
|
||||
should_interpolate,
|
||||
kCGRenderingIntentDefault,
|
||||
|
Loading…
Reference in New Issue
Block a user