Commit 911e9dad authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

wintab32/tests: Improve WTInfoA tests.

Some older WACOM tables dont support DVC_Z, DVC_TPRESSURE. Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 73568dab
......@@ -160,6 +160,9 @@ static void test_WTInfoA(void)
ret = pWTInfoA( WTI_DEVICES, DVC_NAME, name );
trace("DVC_NAME %s\n", name);
ret = pWTInfoA( WTI_DEVICES, DVC_HARDWARE, name );
trace("DVC_HARDWARE %s\n", name);
ret = pWTInfoA( WTI_DEVICES, DVC_X, &value );
ok(ret == sizeof( AXIS ), "Wrong DVC_X size %d\n", ret);
trace("DVC_X %d, %d, %d\n", value.axMin, value.axMax, value.axUnits);
......@@ -169,16 +172,20 @@ static void test_WTInfoA(void)
trace("DVC_Y %d, %d, %d\n", value.axMin, value.axMax, value.axUnits);
ret = pWTInfoA( WTI_DEVICES, DVC_Z, &value );
todo_wine ok(ret == sizeof( AXIS ), "Wrong DVC_Z size %d\n", ret);
if(ret)
trace("DVC_Z %d, %d, %d\n", value.axMin, value.axMax, value.axUnits);
else
trace("DVC_Z not supported\n");
ret = pWTInfoA( WTI_DEVICES, DVC_NPRESSURE, &value );
ok(ret == sizeof( AXIS ), "Wrong DVC_NPRESSURE, size %d\n", ret);
trace("DVC_NPRESSURE %d, %d, %d\n", value.axMin, value.axMax, value.axUnits);
ret = pWTInfoA( WTI_DEVICES, DVC_TPRESSURE, &value );
todo_wine ok(ret == sizeof( AXIS ), "Wrong DVC_TPRESSURE, size %d\n", ret);
if(ret)
trace("DVC_TPRESSURE %d, %d, %d\n", value.axMin, value.axMax, value.axUnits);
else
trace("DVC_TPRESSURE not supported\n");
ret = pWTInfoA( WTI_DEVICES, DVC_ORIENTATION, &orientation );
ok(ret == sizeof( AXIS )*3, "Wrong DVC_ORIENTATION, size %d\n", ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment