Don't include an alpha channel when creating a screenshot file.

This commit is contained in:
Darren Salt 2023-12-21 17:01:11 +00:00
parent 62dc6acc32
commit 4156dd56f3

View File

@ -1360,7 +1360,7 @@ impl Window {
.unwrap_or(0)
));
// Try to save the image
if let Err(e) = image.into_rgba8().save(&path) {
if let Err(e) = image.into_rgb8().save(&path) {
warn!(?e, "Couldn't save screenshot");
let _result = sender.send(String::from("Couldn't save screenshot"));
} else {