test: fix build error introduced by XINPUT_ABI 7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
cbeb6a73c4
commit
bf0f3b8f2b
|
@ -52,13 +52,14 @@ static void dix_init_valuators(void)
|
||||||
ValuatorClassPtr val;
|
ValuatorClassPtr val;
|
||||||
const int num_axes = 2;
|
const int num_axes = 2;
|
||||||
int i;
|
int i;
|
||||||
|
Atom atoms[MAX_VALUATORS] = { 0 };
|
||||||
|
|
||||||
|
|
||||||
memset(&dev, 0, sizeof(DeviceIntRec));
|
memset(&dev, 0, sizeof(DeviceIntRec));
|
||||||
dev.type = MASTER_POINTER; /* claim it's a master to stop ptracccel */
|
dev.type = MASTER_POINTER; /* claim it's a master to stop ptracccel */
|
||||||
|
|
||||||
g_assert(InitValuatorClassDeviceStruct(NULL, 0, 0, 0) == FALSE);
|
g_assert(InitValuatorClassDeviceStruct(NULL, 0, atoms, 0, 0) == FALSE);
|
||||||
g_assert(InitValuatorClassDeviceStruct(&dev, num_axes, 0, Absolute));
|
g_assert(InitValuatorClassDeviceStruct(&dev, num_axes, atoms, 0, Absolute));
|
||||||
|
|
||||||
val = dev.valuator;
|
val = dev.valuator;
|
||||||
g_assert(val);
|
g_assert(val);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user