ref: 89a9c8e003d5b415ee7f940e5231cf7c4d8e75e1
parent: 0cff90defcb069c351fd81bed9e57f3519c70ef7
author: Simon Howard <[email protected]>
date: Thu Sep 21 14:20:45 EDT 2006
Add ENDOOM and startup delay to display settings dialog. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 646
--- a/setup/display.c
+++ b/setup/display.c
@@ -47,6 +47,8 @@
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 @@
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 @@
TXT_AddWidget(window, TXT_NewSeparator("Fullscreen modes"));
table = TXT_NewTable(2);
+ TXT_SetColumnWidths(table, 14, 14);
for (; modes[i].description != NULL; ++i)
{
@@ -114,6 +118,17 @@
TXT_AddWidget(table, rbutton);
TXT_SignalConnect(rbutton, "selected", ModeSelected, &modes[i]);
}
+
+ 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);
}