Display "off" when mouse acceleration is disabled (#1564)

This commit is contained in:
ceski 2024-03-05 22:27:45 -08:00 committed by GitHub
parent 6bb582c26f
commit 94e7861b64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2100,7 +2100,9 @@ static const char **M_GetMouseAccelStrings(void)
static const char *strings[MOUSE_ACCEL_STRINGS_SIZE];
char buf[8];
for (int i = 0; i < MOUSE_ACCEL_STRINGS_SIZE; ++i)
strings[0] = M_StringDuplicate("Off");
for (int i = 1; i < MOUSE_ACCEL_STRINGS_SIZE; ++i)
{
int val = i + 10;
M_snprintf(buf, sizeof(buf), "%1d.%1d", val / 10, val % 10);