diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-02-10 05:49:51 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-02-10 05:49:51 +0000 |
commit | 7150eb3de381ea36cb360b8972c9ef81b143c268 (patch) | |
tree | d2b41f773c1a23cc852a8f54ee5e8e07edfed433 /sbin/wsconsctl | |
parent | 2552db1a3d486f404a30f2dc9bb1dd95fd3d0e63 (diff) |
Permit negative x and y coordinates in mouse.scale for uts and ums.
Needed by some touchscreens.
no objection matthieu@
Diffstat (limited to 'sbin/wsconsctl')
-rw-r--r-- | sbin/wsconsctl/util.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/wsconsctl/util.c b/sbin/wsconsctl/util.c index 5d4eb531418..0e505f2f656 100644 --- a/sbin/wsconsctl/util.c +++ b/sbin/wsconsctl/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.62 2013/11/17 13:41:26 kettenis Exp $ */ +/* $OpenBSD: util.c,v 1.63 2016/02/10 05:49:50 guenther Exp $ */ /* $NetBSD: util.c,v 1.8 2000/03/14 08:11:53 sato Exp $ */ /*- @@ -419,37 +419,37 @@ rd_field(struct field *f, char *val, int merge) val = (void *)strtok(val, ","); if (val != NULL) { wmcoords.minx = (int)strtonum(val, - 0, 32768, &errstr); + -32768, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (!errstr && val != NULL) { wmcoords.maxx = (int)strtonum(val, - 0, 32768, &errstr); + -32768, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (!errstr && val != NULL) { wmcoords.miny = (int)strtonum(val, - 0, 32768, &errstr); + -32768, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (!errstr && val != NULL) { wmcoords.maxy = (int)strtonum(val, - 0, 32768, &errstr); + -32768, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (!errstr && val != NULL) { wmcoords.swapxy = (int)strtonum(val, - 0, 32768, &errstr); + -32768, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (!errstr && val != NULL) { wmcoords.resx = (int)strtonum(val, - 0, 32768, &errstr); + 0, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (!errstr && val != NULL) { wmcoords.resy = (int)strtonum(val, - 0, 32768, &errstr); + 0, 32767, &errstr); val = (void *)strtok(NULL, ","); } if (errstr) |