jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6ad565a6afe3243b97cf0f22a17b532aa391c1e9

commit 6ad565a6afe3243b97cf0f22a17b532aa391c1e9
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Oct 30 14:30:03 2015 +0900

    edje_cc: Allow LOSSY compression without quality param
    
    LOSSY quality will then default to 90.
---
 src/bin/edje/edje_cc_handlers.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index f82b020..e986291 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -1895,8 +1895,10 @@ st_images_image(void)
        check_arg_count(2);
    else
      {
-       img->source_param = parse_int_range(2, 0, 100);
-       check_arg_count(3);
+        if (check_range_arg_count(2, 3) > 2)
+          img->source_param = parse_int_range(2, 0, 100);
+        else
+          img->source_param = 90;
      }
 }
 

-- 


Reply via email to