Magellan Linux

Annotation of /trunk/xf86-video-sis/patches/xf86-video-sis-0.10.7-xi.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2102 - (hide annotations) (download)
Mon Mar 11 09:25:40 2013 UTC (11 years, 3 months ago) by niro
File size: 712 byte(s)
-fix build against new xi
1 niro 2102 --- xf86-video-sis-0.10.7/src/sis_driver.c 2013-03-10 13:57:50.000000000 +0100
2     +++ xf86-video-sis-0.10.7/src/sis_driver.c.new 2013-03-10 13:54:48.645203559 +0100
3     @@ -9378,7 +9378,15 @@
4     }
5     if(doit) {
6     sigstate = xf86BlockSIGIO();
7     -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 15
8     +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 18
9     + {
10     + double dx = x, dy = y;
11     + miPointerSetPosition(inputInfo.pointer, Absolute, &dx, &dy,
12     + NULL, NULL);
13     + x = (int)dx;
14     + y = (int)dy;
15     + }
16     +#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 15
17     {
18     double dx = x, dy = y;
19     miPointerSetPosition(inputInfo.pointer, Absolute, &dx, &dy);