diff options
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/evdev.c b/src/evdev.c index 7b18cbe2..8afa8e46 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -2210,6 +2210,9 @@ evdev_device_calibrate(struct evdev_device *device, matrix_from_farray6(&transform, calibration); device->abs.apply_calibration = !matrix_is_identity(&transform); + /* back up the user matrix so we can return it on request */ + matrix_from_farray6(&device->abs.usermatrix, calibration); + if (!device->abs.apply_calibration) { matrix_init_identity(&device->abs.calibration); return; @@ -2238,9 +2241,6 @@ evdev_device_calibrate(struct evdev_device *device, * order. */ - /* back up the user matrix so we can return it on request */ - matrix_from_farray6(&device->abs.usermatrix, calibration); - /* Un-Normalize */ matrix_init_translate(&translate, device->abs.absinfo_x->minimum, |