Skip to content

Commit

Permalink
[refactor] libwayshot, skip composited buffer as it's being overlayed…
Browse files Browse the repository at this point in the history
… onto

Signed-off-by: decodetalkers
Signed-off-by: Shinyzenith <[email protected]>
  • Loading branch information
Decodetalkers authored and Shinyzenith committed Aug 5, 2023
1 parent 91cb43d commit f404e9d
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 f404e9d

Please sign in to comment.