diff options
author | Simon Howard | 2014-03-17 14:03:10 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-17 14:03:10 -0400 |
commit | 7d8526e3ba91fef73e5c6129cce9a629cb3c8bb4 (patch) | |
tree | 77728b088bc1a4654d4110343e8855d74ccd4f61 /src/setup | |
parent | a8029480188a1b02f4acffc33ef4cfb1b94aecc1 (diff) | |
parent | dccc76cfd0dda5b6756372451c5738cc129d3e85 (diff) | |
download | chocolate-doom-7d8526e3ba91fef73e5c6129cce9a629cb3c8bb4.tar.gz chocolate-doom-7d8526e3ba91fef73e5c6129cce9a629cb3c8bb4.tar.bz2 chocolate-doom-7d8526e3ba91fef73e5c6129cce9a629cb3c8bb4.zip |
Merge pull request #361 from fabiangreffrath/png_screenshots
Allow for PNG screenshots.
Diffstat (limited to 'src/setup')
-rw-r--r-- | src/setup/display.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/setup/display.c b/src/setup/display.c index 494d732a..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); @@ -110,6 +111,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 @@ -561,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); } @@ -710,6 +718,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 |