From 002822dfa2bd78f946b7e4730004220919d4ddb9 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 17 Mar 2014 16:42:49 +0100 Subject: Allow for PNG screenshots. --- src/i_video.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/i_video.c') diff --git a/src/i_video.c b/src/i_video.c index 1add5312..d3f674d4 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -178,6 +178,10 @@ static unsigned int mouse_button_state = 0; int novert = 0; +// Save screenshots in PNG format. + +int png_screenshots = 0; + // if true, I_VideoBuffer is screen->pixels static boolean native_surface; @@ -2220,6 +2224,7 @@ void I_BindVideoVariables(void) M_BindVariable("usegamma", &usegamma); M_BindVariable("vanilla_keyboard_mapping", &vanilla_keyboard_mapping); M_BindVariable("novert", &novert); + M_BindVariable("png_screenshots", &png_screenshots); // Windows Vista or later? Set screen color depth to // 32 bits per pixel, as 8-bit palettized screen modes -- cgit v1.2.3