mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'screenshot' into 'master'
Don't include an alpha channel when creating a screenshot file. See merge request veloren/veloren!4222
This commit is contained in:
commit
35fc92f872
@ -1360,7 +1360,7 @@ impl Window {
|
|||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
));
|
));
|
||||||
// Try to save the image
|
// 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");
|
warn!(?e, "Couldn't save screenshot");
|
||||||
let _result = sender.send(String::from("Couldn't save screenshot"));
|
let _result = sender.send(String::from("Couldn't save screenshot"));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user