bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f18201749c4b6571fc2c2a97fad520fff0d73059
commit f18201749c4b6571fc2c2a97fad520fff0d73059 Author: Wonki Kim <wonki_....@samsung.com> Date: Fri Sep 20 05:26:41 2019 +0000 gesture: fix it not to lose information by dividing division of integer by integer results integer. this patch fix the case to make a division result more precise. Reviewed-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com> Differential Revision: https://phab.enlightenment.org/D10039 --- src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c index 190e476312..0bd41f55b6 100644 --- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c +++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c @@ -71,7 +71,7 @@ _zoom_compute(Efl_Canvas_Gesture_Recognizer_Zoom_Data *pd, Evas_Coord diam = _finger_gap_length_get(xx1, yy1, xx2, yy2, &x, &y); - zd->radius = diam / 2; + zd->radius = diam / 2.0; if (!pd->zoom_base) { @@ -202,7 +202,7 @@ _efl_canvas_gesture_recognizer_zoom_efl_canvas_gesture_recognizer_recognize(Eo * pd->zoom_st.cur.pos.y, &x, &y); - zd->radius = pd->zoom_base / 2; + zd->radius = pd->zoom_base / 2.0; if ((efl_gesture_state_get(gesture) != EFL_GESTURE_STARTED) && (efl_gesture_state_get(gesture) != EFL_GESTURE_UPDATED)) --