diff options
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); } |