From: Bastien N. <ha...@ha...> - 2012-04-30 10:38:33
|
On Mon, 2012-04-30 at 15:53 +1000, Peter Hutterer wrote: > There is no touch-only wacom tablet at this point, so it's safe to assume > that all tablets have some stylus. > > Signed-off-by: Peter Hutterer <pet...@wh...> Reviewed-By: Bastien Nocera <ha...@ha...> > --- > libwacom/libwacom-database.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c > index dd69fd7..70b93ca 100644 > --- a/libwacom/libwacom-database.c > +++ b/libwacom/libwacom-database.c > @@ -366,6 +366,10 @@ libwacom_parse_tablet_keyfile(const char *path) > } > g_strfreev (styli_list); > device->supported_styli = (int *) g_array_free (array, FALSE); > + } else { > + device->supported_styli = g_new (int, 1); > + *device->supported_styli = 0xfffff; > + device->num_styli = 1; > } > > /* Features */ |