e_input: Do not devide translation components by output's w/h of a matrix 32/308332/1
authorduna.oh <duna.oh@samsung.com>
Thu, 21 Mar 2024 08:22:40 +0000 (17:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 21 Mar 2024 09:50:54 +0000 (18:50 +0900)
This code snippet may have come from ecore_drm_evdev.c in efl.
(commit: 33e3e9c8a23a78c789a011d262862867c823b001)
However, since we obtain touch coordinates with respect to output w/h
using libinput_event_touch_get_x_transformed(event, width),
a transformation matrix should remain in origin.

Change-Id: I0e5933069934156d27939e0ebcf1b7c97ab19d46

src/bin/e_input_evdev.c

index a340425..1386b92 100644 (file)
@@ -97,8 +97,6 @@ _device_calibration_set(E_Input_Evdev *edev)
 
    ELOGF("E_INPUT_EVDEV", "calibration_set cal[%lf %lf %lf %lf %lf %lf] (%d x %d)",
          NULL, cal[0], cal[1], cal[2], cal[3], cal[4], cal[5], w, h);
-   cal[2] /= w;
-   cal[5] /= h;
 
    status =
      libinput_device_config_calibration_set_matrix(edev->device, cal);