mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
auto merge of #2387 : glennw/servo/image-fixups, r=Ms2ger
This commit is contained in:
commit
eb67f69b2d
2 changed files with 2 additions and 2 deletions
|
@ -757,7 +757,7 @@ impl IOCompositor {
|
||||||
width: width as u32,
|
width: width as u32,
|
||||||
height: height as u32,
|
height: height as u32,
|
||||||
color_type: png::RGB8,
|
color_type: png::RGB8,
|
||||||
pixels: pixels.move_iter().collect(),
|
pixels: pixels,
|
||||||
};
|
};
|
||||||
let res = png::store_png(&img, &path);
|
let res = png::store_png(&img, &path);
|
||||||
assert!(res.is_ok());
|
assert!(res.is_ok());
|
||||||
|
|
|
@ -168,7 +168,7 @@ fn check_reftest(reftest: Reftest) {
|
||||||
width: left.width,
|
width: left.width,
|
||||||
height: left.height,
|
height: left.height,
|
||||||
color_type: png::RGBA8,
|
color_type: png::RGBA8,
|
||||||
pixels: pixels.move_iter().collect(),
|
pixels: pixels,
|
||||||
};
|
};
|
||||||
let res = png::store_png(&img, &output);
|
let res = png::store_png(&img, &output);
|
||||||
assert!(res.is_ok());
|
assert!(res.is_ok());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue