diff --git a/examples/clipping.rs b/examples/clipping.rs index d54d977..df3db30 100644 --- a/examples/clipping.rs +++ b/examples/clipping.rs @@ -138,7 +138,7 @@ fn main() -> Result<(), Box> { text: vec![Text::new("Hello wgpu_glyph!") .with_color([0.0, 0.0, 0.0, 1.0]) .with_scale(40.0)], - ..Section::default() + ..Section::new() }); // Draw the text! @@ -159,7 +159,7 @@ fn main() -> Result<(), Box> { text: vec![Text::new("Hello wgpu_glyph!") .with_color([1.0, 1.0, 1.0, 1.0]) .with_scale(40.0)], - ..Section::default() + ..Section::new() }); // Draw the text! diff --git a/examples/depth.rs b/examples/depth.rs index 5f02146..d7ffeea 100644 --- a/examples/depth.rs +++ b/examples/depth.rs @@ -132,7 +132,7 @@ fn main() -> Result<(), Box> { .with_scale(95.0) .with_color([0.8, 0.8, 0.8, 1.0]) .with_z(0.9)], - ..Section::default() + ..Section::new() }); // Queue background text next. @@ -149,7 +149,7 @@ fn main() -> Result<(), Box> { .with_scale(30.0) .with_color([0.05, 0.05, 0.1, 1.0]) .with_z(0.2)], - ..Section::default() + ..Section::new() }); // Draw all the text! diff --git a/examples/hello.rs b/examples/hello.rs index d7e3a47..6ab95d6 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -139,7 +139,7 @@ fn main() -> Result<(), Box> { .with_color([0.0, 0.0, 0.0, 1.0]) .with_outline_color([1.0, 1.0, 1.0, 1.0]) .with_scale(40.0)], - ..Section::default() + ..Section::new() }); glyph_brush.queue(Section { @@ -149,7 +149,7 @@ fn main() -> Result<(), Box> { .with_color([1.0, 1.0, 1.0, 1.0]) .with_outline_color([0.0, 0.0, 0.0, 1.0]) .with_scale(40.0)], - ..Section::default() + ..Section::new() }); // Draw the text!