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

@ -403,7 +403,7 @@ impl CanvasRenderingContext2D {
) -> ErrorResult {
debug!("Fetching image {}.", url);
let (mut image_data, image_size) = self.fetch_image_data(url).ok_or(Error::InvalidState)?;
pixels::premultiply_inplace(&mut image_data);
pixels::rgba8_premultiply_inplace(&mut image_data);
let image_size = image_size.to_f64();
let dw = dw.unwrap_or(image_size.width);