summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-21 18:20:45 +0000
committerSimon Howard2006-09-21 18:20:45 +0000
commit89a9c8e003d5b415ee7f940e5231cf7c4d8e75e1 (patch)
treee26415e3cca701a4f81155a3b6c017d2b3813c11
parent0cff90defcb069c351fd81bed9e57f3519c70ef7 (diff)
downloadchocolate-doom-89a9c8e003d5b415ee7f940e5231cf7c4d8e75e1.tar.gz
chocolate-doom-89a9c8e003d5b415ee7f940e5231cf7c4d8e75e1.tar.bz2
chocolate-doom-89a9c8e003d5b415ee7f940e5231cf7c4d8e75e1.zip
Add ENDOOM and startup delay to display settings dialog.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 646
-rw-r--r--setup/display.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/setup/display.c b/setup/display.c
index 41669271..930c14ae 100644
--- a/setup/display.c
+++ b/setup/display.c
@@ -47,6 +47,8 @@ static vidmode_t modes[] =
static int vidmode = 0;
static int fullscreen = 0;
static int screenmult = 1;
+static int startup_delay = 0;
+static int show_endoom = 1;
// Given the video settings (fullscreen, screenmult, etc), find the
// current video mode
@@ -94,6 +96,7 @@ void ConfigDisplay(void)
TXT_AddWidget(window, TXT_NewSeparator("Windowed modes"));
table = TXT_NewTable(2);
+ TXT_SetColumnWidths(table, 14, 14);
for (i=0; modes[i].fullscreen == 0; ++i)
{
@@ -107,6 +110,7 @@ void ConfigDisplay(void)
TXT_AddWidget(window, TXT_NewSeparator("Fullscreen modes"));
table = TXT_NewTable(2);
+ TXT_SetColumnWidths(table, 14, 14);
for (; modes[i].description != NULL; ++i)
{
@@ -116,5 +120,16 @@ void ConfigDisplay(void)
}
TXT_AddWidget(window, table);
+
+ TXT_AddWidget(window, TXT_NewSeparator("Misc."));
+ TXT_AddWidget(window, TXT_NewCheckBox("Show ENDOOM screen", &show_endoom));
+
+ table = TXT_NewTable(2);
+
+ TXT_SetColumnWidths(table, 22, 5);
+ TXT_AddWidget(table, TXT_NewLabel("Startup delay (ms)"));
+ TXT_AddWidget(table, TXT_NewIntInputBox(&startup_delay, 5));
+
+ TXT_AddWidget(window, table);
}