diff options
author | Fabian Greffrath | 2014-03-17 16:42:49 +0100 |
---|---|---|
committer | Fabian Greffrath | 2014-03-17 16:42:49 +0100 |
commit | 002822dfa2bd78f946b7e4730004220919d4ddb9 (patch) | |
tree | 91a4c4be797a5f1edd038692f20b824e769ea979 /src/i_video.c | |
parent | a8029480188a1b02f4acffc33ef4cfb1b94aecc1 (diff) | |
download | chocolate-doom-002822dfa2bd78f946b7e4730004220919d4ddb9.tar.gz chocolate-doom-002822dfa2bd78f946b7e4730004220919d4ddb9.tar.bz2 chocolate-doom-002822dfa2bd78f946b7e4730004220919d4ddb9.zip |
Allow for PNG screenshots.
Diffstat (limited to 'src/i_video.c')
-rw-r--r-- | src/i_video.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |