diff --git a/examples/bevy-image.rs b/examples/bevy-image.rs index 1970a93..604a415 100644 --- a/examples/bevy-image.rs +++ b/examples/bevy-image.rs @@ -80,7 +80,7 @@ fn draw_png(image: &Image, img_path: &str) { a: 0xff, }), &StrokeStyle { - width: 1., + width: scale as f32, ..StrokeStyle::default() }, &DrawOptions::new(), diff --git a/examples/dynamic-image.rs b/examples/dynamic-image.rs index 6b4ee4d..803399c 100644 --- a/examples/dynamic-image.rs +++ b/examples/dynamic-image.rs @@ -40,7 +40,7 @@ fn draw_png(img_path: &str) { a: 0xff, }), &StrokeStyle { - width: 1., + width: scale as f32, ..StrokeStyle::default() }, &DrawOptions::new(),