From: duna.oh Date: Thu, 21 Mar 2024 08:22:40 +0000 (+0900) Subject: e_input: Do not devide translation components by output's w/h of a matrix X-Git-Tag: accepted/tizen/unified/20240327.141655~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1242a49f1752d0cce54d2615eb9f100b8c101a4e;p=platform%2Fupstream%2Fenlightenment.git e_input: Do not devide translation components by output's w/h of a matrix 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 --- diff --git a/src/bin/e_input_evdev.c b/src/bin/e_input_evdev.c index a340425..1386b92 100644 --- a/src/bin/e_input_evdev.c +++ b/src/bin/e_input_evdev.c @@ -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);