Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons Do not overflow int64_t on HP Spectre x360 13...
details: https://anonhg.NetBSD.org/src/rev/f67bb9d511db
branches: trunk
changeset: 457634:f67bb9d511db
user: ryoon <ryoon%NetBSD.org@localhost>
date: Tue Jul 09 12:55:45 2019 +0000
description:
Do not overflow int64_t on HP Spectre x360 13-inch ae019TU
The machine has pen touch panel with (18344, 10544) -> (3840, 2160)
conversion.
diffstat:
sys/dev/wscons/tpcalib.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e68d8c024908 -r f67bb9d511db sys/dev/wscons/tpcalib.c
--- a/sys/dev/wscons/tpcalib.c Tue Jul 09 12:52:51 2019 +0000
+++ b/sys/dev/wscons/tpcalib.c Tue Jul 09 12:55:45 2019 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index