mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
Fix size of image in image/base.rs
This commit is contained in:
parent
19b0a2fb11
commit
70e8b60c44
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ import stb_image::image::{image, load, load_from_memory};
|
||||||
|
|
||||||
type Image = image;
|
type Image = image;
|
||||||
|
|
||||||
const TEST_IMAGE: [u8 * 88129] = #include_bin("test.jpeg");
|
const TEST_IMAGE: [u8 * 4962] = #include_bin("test.jpeg");
|
||||||
|
|
||||||
fn test_image_bin() -> ~[u8] {
|
fn test_image_bin() -> ~[u8] {
|
||||||
return vec::from_fn(88129, |i| TEST_IMAGE[i]);
|
return vec::from_fn(4962, |i| TEST_IMAGE[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue