From e97702d07137a20cdac1d68c6ef28e1bf930c9d6 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Mon, 30 Oct 2017 11:15:50 +0900 Subject: [PATCH] e_input: converting to floating point correctly. Change-Id: I1dbe59158d40f786fdebaafe1a5ef491c78dd2d8 --- src/bin/e_input_evdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_input_evdev.c b/src/bin/e_input_evdev.c index 5e12d50e1b..ed0b934a5f 100644 --- a/src/bin/e_input_evdev.c +++ b/src/bin/e_input_evdev.c @@ -27,8 +27,8 @@ _device_calibration_set(E_Input_Evdev *edev) if (libinput_device_has_capability(edev->device, LIBINPUT_DEVICE_CAP_POINTER)) { - edev->seat->ptr.dx = w / 2; - edev->seat->ptr.dy = h / 2; + edev->seat->ptr.dx = (double)(w / 2); + edev->seat->ptr.dy = (double)(h / 2); edev->seat->ptr.ix = (int)edev->seat->ptr.dx; edev->seat->ptr.iy = (int)edev->seat->ptr.dy; edev->mouse.dx = edev->seat->ptr.dx; -- 2.34.1