shithub: choc

Download patch

ref: 8ebd88a5ce9e8e5f41879e34311ba86c8b10c362
parent: 4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8
author: Simon Howard <[email protected]>
date: Mon Sep 25 19:22:56 EDT 2006

Reduce the minimum width of the key/mouse input widgets and align the
mouse config dialog a bit nicer.

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

--- a/setup/mouse.c
+++ b/setup/mouse.c
@@ -90,7 +90,7 @@
 
     table = TXT_NewTable(2);
 
-    TXT_SetColumnWidths(table, 25, 10);
+    TXT_SetColumnWidths(table, 27, 5);
     TXT_AddWidget(table, TXT_NewLabel("Speed"));
     TXT_AddWidget(table, TXT_NewSpinControl(&speed, 1, 256));
     TXT_AddWidget(table, TXT_NewLabel("Acceleration"));
@@ -104,7 +104,7 @@
 
     table = TXT_NewTable(2);
 
-    TXT_SetColumnWidths(table, 25, 10);
+    TXT_SetColumnWidths(table, 27, 5);
     AddMouseControl(table, "Fire weapon", &mouseb_fire);
     AddMouseControl(table, "Move forward", &mouseb_forward);
     AddMouseControl(table, "Strafe on", &mouseb_strafe);
--- a/setup/txt_keyinput.c
+++ b/setup/txt_keyinput.c
@@ -30,7 +30,7 @@
 #include "txt_label.h"
 #include "txt_window.h"
 
-#define KEY_INPUT_WIDTH 10
+#define KEY_INPUT_WIDTH 8
 
 static int KeyPressCallback(txt_window_t *window, int key, 
                             TXT_UNCAST_ARG(key_input))
--- a/setup/txt_mouseinput.c
+++ b/setup/txt_mouseinput.c
@@ -31,7 +31,7 @@
 #include "txt_label.h"
 #include "txt_window.h"
 
-#define MOUSE_INPUT_WIDTH 10
+#define MOUSE_INPUT_WIDTH 8
 
 static int MouseButtonToSetting(int b)
 {