tasn pushed a commit to branch master.
commit d26f78813f7fc39acfb0b4c099e01aeb6983bf89
Author: Tom Hacohen <[email protected]>
Date: Thu Apr 4 13:32:06 2013 +0100
Evas clouseau: Cleaned up and added more clouseau map info.
---
src/lib/evas/canvas/evas_object_main.c | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
diff --git a/src/lib/evas/canvas/evas_object_main.c
b/src/lib/evas/canvas/evas_object_main.c
index 0689ffd..ba40cea 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -2060,14 +2060,26 @@ _dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED,
va_list *list)
{ /* Save map coords count info if object has map */
node = EO_DBG_INFO_LIST_APPEND(group, "Evas Map");
int points_count = evas_map_count_get(map);
- for(int i = 0 ; i < points_count; i++)
+ Eo_Dbg_Info *points = EO_DBG_INFO_LIST_APPEND(node, "Points");
+ Eo_Dbg_Info *pointsuv = EO_DBG_INFO_LIST_APPEND(node, "Image UV");
+ for (int i = 0 ; i < points_count; i++)
{
- Evas_Coord px, py, pz;
- evas_map_point_coord_get(map, i, &px, &py, &pz);
- Eo_Dbg_Info *point = EO_DBG_INFO_LIST_APPEND(node, "Coords");
- EO_DBG_INFO_APPEND(point, "x", EINA_VALUE_TYPE_INT, px);
- EO_DBG_INFO_APPEND(point, "y", EINA_VALUE_TYPE_INT, py);
- EO_DBG_INFO_APPEND(point, "z", EINA_VALUE_TYPE_INT, pz);
+ {
+ Evas_Coord px, py, pz;
+ evas_map_point_coord_get(map, i, &px, &py, &pz);
+ Eo_Dbg_Info *point = EO_DBG_INFO_LIST_APPEND(points,
"Points");
+ EO_DBG_INFO_APPEND(point, "x", EINA_VALUE_TYPE_INT, px);
+ EO_DBG_INFO_APPEND(point, "y", EINA_VALUE_TYPE_INT, py);
+ EO_DBG_INFO_APPEND(point, "z", EINA_VALUE_TYPE_INT, pz);
+ }
+
+ {
+ double pu, pv;
+ evas_map_point_image_uv_get(map, i, &pu, &pv);
+ Eo_Dbg_Info *point = EO_DBG_INFO_LIST_APPEND(pointsuv,
"Image UV");
+ EO_DBG_INFO_APPEND(point, "u", EINA_VALUE_TYPE_DOUBLE, pu);
+ EO_DBG_INFO_APPEND(point, "v", EINA_VALUE_TYPE_DOUBLE, pv);
+ }
}
}
}
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html