From: Leandro Dorileo Date: Tue, 30 Oct 2012 18:31:58 +0000 (+0000) Subject: EPhysics: the z axis is inverted X-Git-Tag: submit/devel/efl/20131022.203902~3522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0126e755b025536abd4039e3c960afef57f9226;p=platform%2Fupstream%2Fefl.git EPhysics: the z axis is inverted The z axis is inverted so the greater the lower it is, the smaller the above it is. Patch by: Leandro Dorileo SVN revision: 78682 --- diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp index 1835d6c..7cc3652 100644 --- a/legacy/ephysics/src/lib/ephysics_body.cpp +++ b/legacy/ephysics/src/lib/ephysics_body.cpp @@ -362,11 +362,11 @@ _ephysics_body_evas_stacking_sort_cb(const void *d1, const void *d2) stacking1 = (const EPhysics_Body_Evas_Stacking *)d1; stacking2 = (const EPhysics_Body_Evas_Stacking *)d2; - if (!stacking1) return -1; - if (!stacking2) return 1; + if (!stacking1) return 1; + if (!stacking2) return -1; - if (stacking1->stacking < stacking2->stacking) return 1; - if (stacking2->stacking > stacking2->stacking) return -1; + if (stacking1->stacking < stacking2->stacking) return -1; + if (stacking2->stacking > stacking2->stacking) return 1; return 0; }