Backed out changeset 9357a2ca3473

This commit is contained in:
Sam Lantinga 2014-03-02 11:10:00 -08:00
parent 2cf453dd3e
commit c2c08f68e4
1 changed files with 2 additions and 3 deletions

View File

@ -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. */
}