Xi: add forgotten byte-swaps for Valuator fields

This has caused nonsensical values in xinput output.

Signed-off-by: Roman Kapl <code@rkapl.cz>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 40586cc4f8)
This commit is contained in:
Roman Kapl 2018-06-07 03:31:42 +02:00 committed by Adam Jackson
parent 273115a012
commit 64bf285729
1 changed files with 3 additions and 0 deletions

View File

@ -383,6 +383,9 @@ SwapValuatorInfo(DeviceIntPtr dev, xXIValuatorInfo * info)
swapl(&info->min.frac);
swapl(&info->max.integral);
swapl(&info->max.frac);
swapl(&info->value.integral);
swapl(&info->value.frac);
swapl(&info->resolution);
swaps(&info->number);
swaps(&info->sourceid);
}