X11: build again on Linux distros that don't have XInput 2.2
fixed1616ToReal is needed by the XI2 tablet event debugging added in
ecf11d62fc, so it needs to be available
if tablet events are supported and XI 2.2 events are not (older Linux
distros).
Change-Id: Id763d585790a9f037abc408dfba4ab5eec6dd421
Task-number: QTBUG-36437
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: Wolfgang Bremer <wbremer@blackberry.com>
bb10
parent
c071b165a3
commit
aac064b1c7
|
|
@ -287,12 +287,14 @@ XInput2DeviceData *QXcbConnection::deviceForId(int id)
|
|||
return dev;
|
||||
}
|
||||
|
||||
#ifdef XCB_USE_XINPUT22
|
||||
#if defined(XCB_USE_XINPUT22) || !defined(QT_NO_TABLETEVENT)
|
||||
static qreal fixed1616ToReal(FP1616 val)
|
||||
{
|
||||
return (qreal(val >> 16)) + (val & 0xFF) / (qreal)0xFF;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef XCB_USE_XINPUT22
|
||||
static qreal valuatorNormalized(double value, XIValuatorClassInfo *vci)
|
||||
{
|
||||
if (value > vci->max)
|
||||
|
|
|
|||
Loading…
Reference in New Issue