Skip to content

Commit

Permalink
Change Section::default to Section::new to work with alexheretic/…
Browse files Browse the repository at this point in the history
  • Loading branch information
aweinstock314 committed Feb 21, 2023
1 parent 3e21d8b commit 074c5d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/clipping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn main() -> Result<(), Box<dyn Error>> {
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!
Expand All @@ -156,7 +156,7 @@ fn main() -> Result<(), Box<dyn Error>> {
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!
Expand Down
4 changes: 2 additions & 2 deletions examples/depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.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.
Expand All @@ -148,7 +148,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.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!
Expand Down
4 changes: 2 additions & 2 deletions examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.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 {
Expand All @@ -146,7 +146,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.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!
Expand Down

0 comments on commit 074c5d5

Please sign in to comment.