Skip to content

Commit

Permalink
Backed out changeset 9357a2ca3473
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 2, 2014
1 parent 2cf453d commit c2c08f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/video/x11/SDL_x11xinput2.c
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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. */
}
Expand Down

0 comments on commit c2c08f6

Please sign in to comment.