From 89a9c8e003d5b415ee7f940e5231cf7c4d8e75e1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 21 Sep 2006 18:20:45 +0000 Subject: Add ENDOOM and startup delay to display settings dialog. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 646 --- setup/display.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); } -- cgit v1.2.3