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/setup/display.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/setup') diff --git a/src/setup/display.c b/src/setup/display.c index 494d732a..99c3d8aa 100644 --- a/src/setup/display.c +++ b/src/setup/display.c @@ -110,6 +110,7 @@ static int usegamma = 0; int graphical_startup = 1; int show_endoom = 1; +int png_screenshots = 0; // These are the last screen width/height values that were chosen by the // user. These are used when finding the "nearest" mode, so when @@ -710,6 +711,7 @@ void BindDisplayVariables(void) M_BindVariable("video_driver", &video_driver); M_BindVariable("window_position", &window_position); M_BindVariable("usegamma", &usegamma); + M_BindVariable("png_screenshots", &png_screenshots); if (gamemission == doom || gamemission == heretic -- cgit v1.2.3 From dccc76cfd0dda5b6756372451c5738cc129d3e85 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 17 Mar 2014 17:31:59 +0100 Subject: Add PNG screenshots to advanced video options menu. --- src/setup/display.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/setup') diff --git a/src/setup/display.c b/src/setup/display.c index 99c3d8aa..1c0f8ef4 100644 --- a/src/setup/display.c +++ b/src/setup/display.c @@ -32,6 +32,7 @@ #include "mode.h" #include "display.h" +#include "config.h" extern void RestartTextscreen(void); @@ -562,6 +563,12 @@ static void AdvancedDisplayConfig(TXT_UNCAST_ARG(widget), &show_endoom)); } +#ifdef HAVE_LIBPNG + TXT_AddWidget(window, + TXT_NewCheckBox("Save screenshots in PNG format", + &png_screenshots)); +#endif + TXT_SignalConnect(ar_checkbox, "changed", GenerateModesTable, modes_table); } -- cgit v1.2.3