Skip to content

Commit

Permalink
Use Dims for buffer dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlstrom committed Nov 29, 2024
1 parent da56fc8 commit bdb4dfa
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 107 deletions.
2 changes: 1 addition & 1 deletion core/src/render/raster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ mod tests {

#[test]
fn shared_edge_should_not_have_gaps_or_overdraw() {
let mut buf = Buf2::new(20, 10);
let mut buf = Buf2::new((20, 10));

let verts = [
vec3(8.0, 0.0, 0.0),
Expand Down
2 changes: 1 addition & 1 deletion core/src/render/tex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ mod tests {
#[rustfmt::skip]
fn tex() -> Texture<Buf2<Color3>> {
Texture::from(Buf2::new_from(
2, 2, vec![
(2, 2), vec![
rgb(0xFF, 0, 0),
rgb(0, 0xFF, 0),
rgb(0, 0, 0xFF),
Expand Down
Loading

0 comments on commit bdb4dfa

Please sign in to comment.