summaryrefslogtreecommitdiffstats
path: root/meta/packages/tslib/tslib/usec_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/tslib/tslib/usec_fix.patch')
-rw-r--r--meta/packages/tslib/tslib/usec_fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/packages/tslib/tslib/usec_fix.patch b/meta/packages/tslib/tslib/usec_fix.patch
new file mode 100644
index 0000000000..a791b39a3c
--- /dev/null
+++ b/meta/packages/tslib/tslib/usec_fix.patch
@@ -0,0 +1,26 @@
1Index: work/tslib-0.0cvs20051201-r32/tslib/plugins/collie-raw.c
2===================================================================
3--- tslib.orig/plugins/collie-raw.c 2005-12-04 10:09:33.000000000 +0100
4+++ tslib/plugins/collie-raw.c 2005-12-04 10:16:05.000000000 +0100
5@@ -29,7 +29,7 @@
6 #ifdef DEBUG
7 fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure);
8 #endif /*DEBUG*/
9- samp->tv.tv_usec = collie_evt->millisecs % 1000;
10+ samp->tv.tv_usec = (collie_evt->millisecs % 1000) * 1000;
11 samp->tv.tv_sec = collie_evt->millisecs / 1000;
12 samp++;
13 collie_evt++;
14Index: work/tslib-0.0cvs20051201-r32/tslib/plugins/corgi-raw.c
15===================================================================
16--- tslib.orig/plugins/corgi-raw.c 2005-12-04 10:10:19.000000000 +0100
17+++ tslib/plugins/corgi-raw.c 2005-12-04 10:16:15.000000000 +0100
18@@ -29,7 +29,7 @@
19 #ifdef DEBUG
20 fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure);
21 #endif /*DEBUG*/
22- samp->tv.tv_usec = corgi_evt->millisecs % 1000;
23+ samp->tv.tv_usec = (corgi_evt->millisecs % 1000) * 1000;
24 samp->tv.tv_sec = corgi_evt->millisecs / 1000;
25 samp++;
26 corgi_evt++;