e_input: converting to floating point correctly. 17/158117/1
authorGwanglim Lee <gl77.lee@samsung.com>
Mon, 30 Oct 2017 02:15:50 +0000 (11:15 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 30 Oct 2017 02:15:50 +0000 (11:15 +0900)
Change-Id: I1dbe59158d40f786fdebaafe1a5ef491c78dd2d8

src/bin/e_input_evdev.c

index 5e12d50..ed0b934 100644 (file)
@@ -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;