edje_cc: Allow LOSSY compression without quality param

LOSSY quality will then default to 90.
This commit is contained in:
Jean-Philippe Andre 2015-10-30 14:30:03 +09:00
parent 7974f674aa
commit 6ad565a6af
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}