jpeg pushed a commit to branch master.

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

commit e5dbc2111931b367aac4329efa89914a3ec38619
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Oct 29 16:12:09 2015 +0900

    Emile: Allow load of ETC images if region = whole image
    
    @fix
---
 src/lib/emile/emile_image.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index ef343cc..58a37c5 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -335,7 +335,9 @@ _emile_tgv_head(Emile_Image *image,
                       0, 0,
                       image->size.width, image->size.height);
    if (image->load_opts &&
-       (image->opts.region.w > 0 && image->opts.region.h > 0))
+       ((image->opts.region.w > 0) && (image->opts.region.h > 0) &&
+        (image->opts.region.w != (int) image->size.width) &&
+        (image->opts.region.h != (int) image->size.height)))
      {
         /* ETC colorspace doesn't work with region for now */
         prop->cspaces = NULL;

-- 


Reply via email to