Commit 870b7765 authored by Alex Butler's avatar Alex Butler

Update dev-dependency image

parent 4658ceea
Pipeline #5375 passed with stages
in 16 minutes and 47 seconds
......@@ -41,7 +41,7 @@ num_cpus = { version = "1.0", optional = true }
[dev-dependencies]
glium = "0.25"
image = { version = "0.21", default-features = false, features = ["png_codec"] }
image = { version = "0.22", default-features = false, features = ["png_codec"] }
lazy_static = "1"
unicode-normalization = "0.1"
blake2 = "0.8"
......
......@@ -50,9 +50,7 @@ fn main() {
x + bounding_box.min.x as u32,
y + bounding_box.min.y as u32,
// Turn the coverage into an alpha value
Rgba {
data: [colour.0, colour.1, colour.2, (v * 255.0) as u8],
},
Rgba([colour.0, colour.1, colour.2, (v * 255.0) as u8]),
)
});
}
......
......@@ -19,9 +19,7 @@ fn draw_luma_alpha(glyph: ScaledGlyph<'_>) -> image::GrayAlphaImage {
glyph_image.put_pixel(
x,
y,
LumaA {
data: [128, (v * 255.0) as u8],
},
LumaA([128, (v * 255.0) as u8]),
)
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment