summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-25 23:22:56 +0000
committerSimon Howard2006-09-25 23:22:56 +0000
commit8ebd88a5ce9e8e5f41879e34311ba86c8b10c362 (patch)
treee0ccac8fd5846d863af329ec9d9cf084401dbcfd
parent4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8 (diff)
downloadchocolate-doom-8ebd88a5ce9e8e5f41879e34311ba86c8b10c362.tar.gz
chocolate-doom-8ebd88a5ce9e8e5f41879e34311ba86c8b10c362.tar.bz2
chocolate-doom-8ebd88a5ce9e8e5f41879e34311ba86c8b10c362.zip
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
-rw-r--r--setup/mouse.c4
-rw-r--r--setup/txt_keyinput.c2
-rw-r--r--setup/txt_mouseinput.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/setup/mouse.c b/setup/mouse.c
index 37aaef1b..57b65b77 100644
--- a/setup/mouse.c
+++ b/setup/mouse.c
@@ -90,7 +90,7 @@ void ConfigMouse(void)
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 @@ void ConfigMouse(void)
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);
diff --git a/setup/txt_keyinput.c b/setup/txt_keyinput.c
index 8aed3998..af939c71 100644
--- 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))
diff --git a/setup/txt_mouseinput.c b/setup/txt_mouseinput.c
index f389a38e..9dd0a2f8 100644
--- 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)
{