summaryrefslogtreecommitdiff
path: root/sbin/wsconsctl/mousecfg.c
diff options
context:
space:
mode:
authorChristopher Zimmermann <chrisz@cvs.openbsd.org>2024-10-05 13:27:17 +0000
committerChristopher Zimmermann <chrisz@cvs.openbsd.org>2024-10-05 13:27:17 +0000
commit408a688f7a4b36de3f6cad9c10b8fea91c79e5fc (patch)
treefe7acfec767a4c482d70ccf428d825857f6c0f4a /sbin/wsconsctl/mousecfg.c
parent387c2ac1c63e2d048981922861f216e2e283f21d (diff)
Make scaling available for normal mice, too; not just for touchpads.
Add reverse_scrolling to the manpage. ok bru@
Diffstat (limited to 'sbin/wsconsctl/mousecfg.c')
-rw-r--r--sbin/wsconsctl/mousecfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/wsconsctl/mousecfg.c b/sbin/wsconsctl/mousecfg.c
index 3b9d0da28fb..b813e13050a 100644
--- a/sbin/wsconsctl/mousecfg.c
+++ b/sbin/wsconsctl/mousecfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mousecfg.c,v 1.11 2024/09/25 19:56:33 bru Exp $ */
+/* $OpenBSD: mousecfg.c,v 1.12 2024/10/05 13:27:16 chrisz Exp $ */
/*
* Copyright (c) 2017 Ulf Brosziewski
@@ -356,6 +356,7 @@ mousecfg_pr_field(struct wsmouse_parameters *field)
if (field == &cfg_scaling) {
value = get_value(field, WSMOUSECFG_DX_SCALE);
+ value = value == 0 ? 4096 : value;
f = (float) value / 4096;
printf("%.3f", f);
return;