Prefix some pixels functions with rgba8_

This commit is contained in:
Anthony Ramine 2018-11-15 10:04:52 +01:00
parent adf363a208
commit a5779ad372
9 changed files with 15 additions and 15 deletions

View file

@ -65,7 +65,7 @@ pub fn load_from_memory(buffer: &[u8]) -> Option<Image> {
DynamicImage::ImageRgba8(rgba) => rgba,
image => image.to_rgba(),
};
pixels::byte_swap_colors_inplace(&mut *rgba);
pixels::rgba8_byte_swap_colors_inplace(&mut *rgba);
Some(Image {
width: rgba.width(),
height: rgba.height(),