Fix build error if HAVE_MTDEV is false

priv->has_touch is conditional on HAVE_MTDEV

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Peter Hutterer
2012-02-17 11:46:12 +10:00
parent f9a906590e
commit 0646cdb99d

View File

@@ -410,6 +410,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
&priv->minw, &priv->maxw,
NULL, NULL);
#if HAVE_MTDEV
if (priv->has_touch)
{
int st_minx = priv->minx;
@@ -429,6 +430,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
proto_data->st_to_mt_scale_y =
(priv->maxy - priv->miny) / (st_maxy - st_miny);
}
#endif
SYSCALL(rc = ioctl(pInfo->fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits));
if (rc >= 0)