summaryrefslogtreecommitdiff
path: root/legacy/ephysics
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-11-09 18:52:35 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-11-09 18:52:35 +0000
commit7af37b39809a0bc03b1c2c86c8261c91eae75916 (patch)
tree11956bd7689e23d71a4000457d73e3294b700b37 /legacy/ephysics
parentde06c6bc1867f3c52b214f517253c3123cf0c6a1 (diff)
ephysics: don't mess with body's depth when setting
evas object SVN revision: 79040
Diffstat (limited to 'legacy/ephysics')
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index 6f36cda951..035e489b6c 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -2322,7 +2322,7 @@ ephysics_body_del(EPhysics_Body *body)
2322EAPI void 2322EAPI void
2323ephysics_body_evas_object_set(EPhysics_Body *body, Evas_Object *evas_obj, Eina_Bool use_obj_pos) 2323ephysics_body_evas_object_set(EPhysics_Body *body, Evas_Object *evas_obj, Eina_Bool use_obj_pos)
2324{ 2324{
2325 int obj_x, obj_y, obj_w, obj_h; 2325 int obj_x, obj_y, obj_w, obj_h, bz, bd;
2326 double rate; 2326 double rate;
2327 2327
2328 if (!body) 2328 if (!body)
@@ -2360,10 +2360,10 @@ ephysics_body_evas_object_set(EPhysics_Body *body, Evas_Object *evas_obj, Eina_B
2360 2360
2361 rate = ephysics_world_rate_get(body->world); 2361 rate = ephysics_world_rate_get(body->world);
2362 evas_object_geometry_get(body->evas_obj, &obj_x, &obj_y, &obj_w, &obj_h); 2362 evas_object_geometry_get(body->evas_obj, &obj_x, &obj_y, &obj_w, &obj_h);
2363 ephysics_body_geometry_get(body, NULL, NULL, &bz, NULL, NULL, &bd);
2363 2364
2364 ephysics_world_lock_take(body->world); 2365 ephysics_world_lock_take(body->world);
2365 _ephysics_body_geometry_set(body, obj_x, obj_y, - rate / 2, 2366 _ephysics_body_geometry_set(body, obj_x, obj_y, bz, obj_w, obj_h, bd, rate);
2366 obj_w, obj_h, rate, rate);
2367 ephysics_world_lock_release(body->world); 2367 ephysics_world_lock_release(body->world);
2368 evas_object_event_callback_add(body->evas_obj, EVAS_CALLBACK_RESIZE, 2368 evas_object_event_callback_add(body->evas_obj, EVAS_CALLBACK_RESIZE,
2369 _ephysics_body_evas_obj_resize_cb, body); 2369 _ephysics_body_evas_obj_resize_cb, body);