shithub: choc

Download patch

ref: b96d0e706d15778c264f8e824343b050ea4a72d6
parent: 32052d17fde83ad028d80d16c7cce981285d6e8b
author: Simon Howard <fraggle@gmail.com>
date: Fri Feb 23 21:30:17 EST 2007

Fix up setup tool to display the video driver setting tabulated with all
the other settings.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 843

--- a/setup/display.c
+++ b/setup/display.c
@@ -162,6 +162,17 @@
     
     window = TXT_NewWindow("Display Configuration");
 
+    TXT_AddWidgets(window, 
+                   TXT_NewCheckBox("Fullscreen", &fullscreen),
+                   ar_table = TXT_NewTable(2),
+                   TXT_NewSeparator("Screen mode"),
+                   modes_table = TXT_NewTable(2),
+                   TXT_NewSeparator("Misc."),
+                   TXT_NewCheckBox("Show ENDOOM screen", &show_endoom),
+                   NULL);
+
+    TXT_SetColumnWidths(ar_table, 25, 0);
+
 #ifdef _WIN32
     {
         txt_dropdown_list_t *driver_list;
@@ -173,20 +184,12 @@
         TXT_SignalConnect(driver_list, "changed", UpdateVideoDriver, NULL);
         SetWin32VideoDriver();
 
-        TXT_AddWidget(window, driver_list);
+        TXT_AddWidgets(ar_table,
+                       TXT_NewLabel("Video driver"),
+                       driver_list,
+                       NULL);
     }
 #endif
-
-    TXT_AddWidgets(window, 
-                   TXT_NewCheckBox("Fullscreen", &fullscreen),
-                   ar_table = TXT_NewTable(2),
-                   TXT_NewSeparator("Screen mode"),
-                   modes_table = TXT_NewTable(2),
-                   TXT_NewSeparator("Misc."),
-                   TXT_NewCheckBox("Show ENDOOM screen", &show_endoom),
-                   NULL);
-
-    TXT_SetColumnWidths(ar_table, 25, 0);
 
     TXT_AddWidgets(ar_table,
                    TXT_NewLabel("Aspect ratio correction"),