Modify the verbose rectangle color on clicked and shot

This is useful when looking at recorded scenarios to understand what is
done.
Sometimes, when scenarios are too old, click is not done on the right
area, leading to weird behavior.
This commit is contained in:
Daniel Zaoui 2016-02-28 14:58:23 +02:00
parent 83b9e632dc
commit ef0b0ae89b
1 changed files with 4 additions and 0 deletions

View File

@ -406,6 +406,7 @@ tsuite_feed_event(void *data)
#ifdef DEBUG_TSUITE
printf("%s evas_event_feed_mouse_down timestamp=<%u> t->n_evas=<%d>\n", __func__, t->timestamp, t->n_evas);
#endif
if (rect) evas_object_color_set(rect, 255, 255, 0, 255);
evas_event_feed_mouse_down(eina_list_nth(evas_list, t->n_evas),
t->b, t->flags, time(NULL),
NULL);
@ -423,6 +424,7 @@ tsuite_feed_event(void *data)
evas_event_feed_mouse_up(eina_list_nth(evas_list, t->n_evas),
t->b, t->flags, time(NULL),
NULL);
if (rect) evas_object_color_set(rect, 255, 0, 0, 255);
break;
}
@ -439,6 +441,7 @@ tsuite_feed_event(void *data)
if (rect)
{
evas_object_move(rect, t->x, t->y);
evas_object_color_set(rect, 255, 0, 0, 255);
}
break;
}
@ -558,6 +561,7 @@ tsuite_feed_event(void *data)
#ifdef DEBUG_TSUITE
printf("%s take shot timestamp=<%u> t->n_evas=<%d>\n", __func__, t->timestamp, t->n_evas);
#endif
if (rect) evas_object_color_set(rect, 0, 0, 255, 255);
tsuite_shot_do(NULL,
eina_list_nth(evas_list, t->n_evas)); /* Serial name based on test-name */
break;