From 8ebd88a5ce9e8e5f41879e34311ba86c8b10c362 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 25 Sep 2006 23:22:56 +0000 Subject: 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 --- setup/mouse.c | 4 ++-- setup/txt_keyinput.c | 2 +- setup/txt_mouseinput.c | 2 +- 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) { -- cgit v1.2.3