From 19ef9ecc9573dc0ca66676e9b0b52ee6da0fa50b Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Fri, 17 Jun 2011 07:12:20 +0000 Subject: [PATCH] evas/evas_map - trivial changes. SVN revision: 60425 --- legacy/evas/src/lib/canvas/evas_map.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_map.c b/legacy/evas/src/lib/canvas/evas_map.c index d322b92..f78ce94 100644 --- a/legacy/evas/src/lib/canvas/evas_map.c +++ b/legacy/evas/src/lib/canvas/evas_map.c @@ -951,26 +951,26 @@ evas_map_util_3d_perspective(Evas_Map *m, m->persp.py = py; m->persp.z0 = z0; m->persp.foc = foc; + + if (foc <= 0) return; + for (; p < p_end; p++) { double x, y, zz; - if (foc > 0) - { - x = p->x - px; - y = p->y - py; + x = p->x - px; + y = p->y - py; - zz = ((p->z - z0) + foc); + zz = ((p->z - z0) + foc); - if (zz > 0) - { - x = (x * foc) / zz; - y = (y * foc) / zz; - } - - p->x = px + x; - p->y = py + y; + if (zz > 0) + { + x = (x * foc) / zz; + y = (y * foc) / zz; } + + p->x = px + x; + p->y = py + y; } } @@ -980,6 +980,7 @@ evas_map_util_clockwise_get(Evas_Map *m) MAGIC_CHECK(m, Evas_Map, MAGIC_MAP); return EINA_FALSE; MAGIC_CHECK_END(); + int i, j, k, count; long long c; -- 2.7.4