shithub: choc

Download patch

ref: b83132a4962787aabf2e07ae90d37d6d87b001b3
parent: e0331a01741905ac665adce1da0fb04e86db4b05
author: Simon Howard <fraggle@gmail.com>
date: Sat May 17 07:23:50 EDT 2014

setup: Tweak joystick axis widget.

Reduce the width slightly (the previous size was excessively wide) and
tweak "none" string to match the joystick button widget.

--- a/src/setup/txt_joyaxis.c
+++ b/src/setup/txt_joyaxis.c
@@ -29,7 +29,7 @@
 #include "txt_io.h"
 #include "txt_joyaxis.h"
 
-#define JOYSTICK_AXIS_WIDTH 24
+#define JOYSTICK_AXIS_WIDTH 20
 
 static char *CalibrationLabel(txt_joystick_axis_t *joystick_axis)
 {
@@ -427,7 +427,7 @@
 
     if (*joystick_axis->axis < 0)
     {
-        M_StringCopy(buf, "(None)", sizeof(buf));
+        M_StringCopy(buf, "(none)", sizeof(buf));
     }
     else if (IS_BUTTON_AXIS(*joystick_axis->axis))
     {