summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-02-20 13:16:51 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-03 10:54:34 +0100
commit7f6dfbac809b250e2c9f25728b6fe77e2aca61fb (patch)
tree885589cafc594f9ecd4a1acdffe2a31a5d0d8d80
parent613cd9f8122ec0afa081064bd6c61d02bf323140 (diff)
tests/elm: fix drag_around helper to handle negative angles
oops Differential Revision: https://phab.enlightenment.org/D11388
-rw-r--r--src/tests/elementary/suite_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index 3deb5ff2bd..ea8164a642 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -731,7 +731,7 @@ drag_object_around(Eo *obj, int cx, int cy, int radius, int degrees)
731{ 731{
732 Evas *e = evas_object_evas_get(obj); 732 Evas *e = evas_object_evas_get(obj);
733 /* clamp num mouse moves to a vaguely sane value */ 733 /* clamp num mouse moves to a vaguely sane value */
734 int i, num = MIN(degrees, DRAG_OBJECT_AROUND_NUM_MOVES); 734 int i, num = MIN(abs(degrees), DRAG_OBJECT_AROUND_NUM_MOVES);
735 int last_x = round(cx + radius); 735 int last_x = round(cx + radius);
736 int last_y = round(cy); 736 int last_y = round(cy);
737 /* start at 0 degrees */ 737 /* start at 0 degrees */