Module Name: src Committed By: ryoon Date: Tue Jul 9 12:55:46 UTC 2019
Modified Files: src/sys/dev/wscons: tpcalib.c Log Message: Do not overflow int64_t on HP Spectre x360 13-inch ae019TU The machine has pen touch panel with (18344, 10544) -> (3840, 2160) conversion. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/wscons/tpcalib.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/wscons/tpcalib.c diff -u src/sys/dev/wscons/tpcalib.c:1.12 src/sys/dev/wscons/tpcalib.c:1.13 --- src/sys/dev/wscons/tpcalib.c:1.12 Thu Apr 6 20:44:39 2017 +++ src/sys/dev/wscons/tpcalib.c Tue Jul 9 12:55:45 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: tpcalib.c,v 1.12 2017/04/06 20:44:39 macallan Exp $ */ +/* $NetBSD: tpcalib.c,v 1.13 2019/07/09 12:55:45 ryoon Exp $ */ /* * Copyright (c) 1999-2003 TAKEMURA Shin All rights reserved. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tpcalib.c,v 1.12 2017/04/06 20:44:39 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tpcalib.c,v 1.13 2019/07/09 12:55:45 ryoon Exp $"); #ifdef _KERNEL_OPT #include "opt_tpcalib.h" @@ -53,7 +53,7 @@ extern int mra_Y_AX1_BX2_C(const int *, const int *, int, const int *, int, int, int, int *, int *, int *); -#define SCALE (1024*256) +#define SCALE (1024) int tpcalib_init(struct tpcalib_softc *sc)