mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-17 23:05:07 -05:00
Don't save alpha channel in screenshots (fixes #1451)
This commit is contained in:
parent
f3eefeb794
commit
b2102bfe49
@ -2068,7 +2068,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
|
|||||||
}
|
}
|
||||||
else if(input->wasKeyDown(getKeySetting("keymap_screenshot")))
|
else if(input->wasKeyDown(getKeySetting("keymap_screenshot")))
|
||||||
{
|
{
|
||||||
irr::video::IImage* const image = driver->createScreenShot();
|
irr::video::IImage* const image = driver->createScreenShot(video::ECF_R8G8B8);
|
||||||
if (image) {
|
if (image) {
|
||||||
irr::c8 filename[256];
|
irr::c8 filename[256];
|
||||||
snprintf(filename, 256, "%s" DIR_DELIM "screenshot_%u.png",
|
snprintf(filename, 256, "%s" DIR_DELIM "screenshot_%u.png",
|
||||||
|
Loading…
Reference in New Issue
Block a user