]> git.pld-linux.org Git - packages/XFree86-Servers.git/blob - XFree86-Servers-period.patch
- move compressed patch to distfiles
[packages/XFree86-Servers.git] / XFree86-Servers-period.patch
1 --- XFree86-Servers-3.3.6/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c~     2000-01-08 19:26:25.000000000 +0100
2 +++ XFree86-Servers-3.3.6/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c      2004-09-01 02:11:22.413163720 +0200
3 @@ -82,7 +82,7 @@
4     struct kbd_repeat kbdrep_s;
5  
6     /* don't change, just test */
7 -   kbdrep_s.rate = -1;
8 +   kbdrep_s.period = -1;
9     kbdrep_s.delay = -1;
10     if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
11         return 0;
12 @@ -90,11 +90,11 @@
13  
14     /* do the change */
15     if (rate == 0)                              /* switch repeat off */
16 -     kbdrep_s.rate = 0;
17 +     kbdrep_s.period = 0;
18     else
19 -     kbdrep_s.rate  = 10000 / rate;            /* convert cps to msec */
20 -   if (kbdrep_s.rate < 1)
21 -     kbdrep_s.rate = 1;
22 +     kbdrep_s.period  = 10000 / rate;          /* convert cps to msec */
23 +   if (kbdrep_s.period < 1)
24 +     kbdrep_s.period = 1;
25     kbdrep_s.delay = delay;
26     if (kbdrep_s.delay < 1)
27       kbdrep_s.delay = 1;
This page took 0.035329 seconds and 3 git commands to generate.