diff options
author | Fabian Greffrath | 2014-03-17 17:31:59 +0100 |
---|---|---|
committer | Fabian Greffrath | 2014-03-17 17:31:59 +0100 |
commit | dccc76cfd0dda5b6756372451c5738cc129d3e85 (patch) | |
tree | 77728b088bc1a4654d4110343e8855d74ccd4f61 /src | |
parent | 81d5f811e9d3d1c672978790da10c91d3a8d7663 (diff) | |
download | chocolate-doom-dccc76cfd0dda5b6756372451c5738cc129d3e85.tar.gz chocolate-doom-dccc76cfd0dda5b6756372451c5738cc129d3e85.tar.bz2 chocolate-doom-dccc76cfd0dda5b6756372451c5738cc129d3e85.zip |
Add PNG screenshots to advanced video options menu.
Diffstat (limited to 'src')
-rw-r--r-- | src/m_config.c | 12 | ||||
-rw-r--r-- | src/setup/display.c | 7 |
2 files changed, 13 insertions, 6 deletions
diff --git a/src/m_config.c b/src/m_config.c index 2bce54bc..50ce48b9 100644 --- a/src/m_config.c +++ b/src/m_config.c @@ -814,6 +814,12 @@ static default_t extra_defaults_list[] = CONFIG_VARIABLE_INT(show_endoom), //! + // If non-zero, save screenshots in PNG format. + // + + CONFIG_VARIABLE_INT(png_screenshots), + + //! // @game doom strife // // If non-zero, the Vanilla savegame limit is enforced; if the @@ -1434,12 +1440,6 @@ static default_t extra_defaults_list[] = // CONFIG_VARIABLE_KEY(key_multi_msgplayer8), - - //! - // If non-zero, save screenshots in PNG format. - // - - CONFIG_VARIABLE_INT(png_screenshots), }; static default_collection_t extra_defaults = 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); } |