1
0
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:
BlockMen 2014-09-03 03:51:49 +02:00
parent f3eefeb794
commit b2102bfe49

View File

@ -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",