mirror of https://github.com/encounter/SDL.git
Backed out changeset 9357a2ca3473
This commit is contained in:
parent
2cf453dd3e
commit
c2c08f68e4
|
@ -61,10 +61,9 @@ static void parse_valuators(const double *input_values,unsigned char *mask,int m
|
|||
}
|
||||
|
||||
static int
|
||||
query_xinput2_version(Display *display)
|
||||
query_xinput2_version(Display *display, int major, int minor)
|
||||
{
|
||||
/* We don't care if this fails, so long as it sets major/minor on it's way out the door. */
|
||||
int major = 0, minor = 0;
|
||||
X11_XIQueryVersion(display, &major, &minor);
|
||||
return ((major * 1000) + minor);
|
||||
}
|
||||
|
@ -102,7 +101,7 @@ X11_InitXinput2(_THIS)
|
|||
}
|
||||
|
||||
/* We need at least 2.2 for Multitouch, 2.0 otherwise. */
|
||||
version = query_xinput2_version(data->display);
|
||||
version = query_xinput2_version(data->display, 2, 2);
|
||||
if (!xinput2_version_atleast(version, 2, 0)) {
|
||||
return; /* X server does not support the version we want at all. */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue