Skip to content

Commit

Permalink
Merge pull request #55 from Decodetalkers/composeskipfirst
Browse files Browse the repository at this point in the history
chore: when make a big image,loop skip first one
  • Loading branch information
Shinyzenith authored Aug 5, 2023
2 parents 91cb43d + d69d0b2 commit 21ac012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libwayshot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ impl WayshotConnection {
images.push(image);
}
composited_image = images[0].clone();
for image in images {
overlay(&mut composited_image, &image, 0, 0);
for image in images.iter().skip(1) {
overlay(&mut composited_image, image, 0, 0);
}
}

Expand Down

0 comments on commit 21ac012

Please sign in to comment.