Update WR (CPU text optimizations, image format renames).

This commit is contained in:
Glenn Watson 2017-06-16 15:27:22 +10:00
parent e3a52536b6
commit e7b1e041c8
9 changed files with 39 additions and 39 deletions

View file

@ -16,7 +16,7 @@ pub enum PixelFormat {
/// RGB, 8 bits per channel
RGB8,
/// RGB + alpha, 8 bits per channel
RGBA8,
BGRA8,
}
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
@ -83,7 +83,7 @@ pub fn load_from_memory(buffer: &[u8]) -> Option<Image> {
Some(Image {
width: rgba.width(),
height: rgba.height(),
format: PixelFormat::RGBA8,
format: PixelFormat::BGRA8,
bytes: IpcSharedMemory::from_bytes(&*rgba),
id: None,
})