summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-09-04 17:47:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-08 09:50:48 +0900
commit89f92afcccc46949ea72b0346472eda8a397ef52 (patch)
tree4858135aee72c02b53d93724215283db8732e964
parentde3062da8977efdba632fec73ded2480f197fb99 (diff)
downloadefl-89f92afcccc46949ea72b0346472eda8a397ef52.tar.gz
Evas filters: remove needless check for negative case.
Summary: Becuse ox is set to 0, it cannot be negative, so negative check will be needless. Reviewers: jpeg Reviewed By: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5155
-rw-r--r--src/lib/evas/filters/evas_filter_parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c
index d01299c5bd..cf276b29cd 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -1686,8 +1686,9 @@ _transform_padding_update(Evas_Filter_Program *pgm EINA_UNUSED,
dst = _instruction_param_getbuf(instr, "dst", NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(dst, 0);
- if (ox < 0) l = (-ox) * 2;
- else r = ox * 2;
+ //if (ox < 0) l = (-ox) * 2;
+ //else r = ox * 2;
+ r = ox * 2;
if (oy < 0) t = (-oy) * 2;
else b = oy * 2;