projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4e7b50
)
e_input: converting to floating point correctly.
17/158117/1
author
Gwanglim Lee
<gl77.lee@samsung.com>
Mon, 30 Oct 2017 02:15:50 +0000
(11:15 +0900)
committer
Gwanglim 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
patch
|
blob
|
history
diff --git
a/src/bin/e_input_evdev.c
b/src/bin/e_input_evdev.c
index 5e12d50e1b515a07bcd3a851b0b8d0951304f73c..ed0b934a5fde2fcf32b319b4c9e585ad0ea8d80b 100644
(file)
--- 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;