summaryrefslogtreecommitdiff
path: root/legacy/edje/src/bin/edje_cc_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/edje/src/bin/edje_cc_out.c')
-rw-r--r--legacy/edje/src/bin/edje_cc_out.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/legacy/edje/src/bin/edje_cc_out.c b/legacy/edje/src/bin/edje_cc_out.c
index f3b4358e32..fe72c5e0c0 100644
--- a/legacy/edje/src/bin/edje_cc_out.c
+++ b/legacy/edje/src/bin/edje_cc_out.c
@@ -566,6 +566,8 @@ data_write_images(Eet_File *ef, int *image_num, int *input_bytes, int *input_raw
566 int im_w, im_h; 566 int im_w, im_h;
567 int im_alpha; 567 int im_alpha;
568 char buf[256]; 568 char buf[256];
569 unsigned int *start, *end;
570 Eina_Bool opaque = EINA_TRUE;
569 571
570 evas_object_image_size_get(im, &im_w, &im_h); 572 evas_object_image_size_get(im, &im_w, &im_h);
571 im_alpha = evas_object_image_alpha_get(im); 573 im_alpha = evas_object_image_alpha_get(im);
@@ -605,6 +607,21 @@ data_write_images(Eet_File *ef, int *image_num, int *input_bytes, int *input_raw
605 if (qual < min_quality) qual = min_quality; 607 if (qual < min_quality) qual = min_quality;
606 if (qual > max_quality) qual = max_quality; 608 if (qual > max_quality) qual = max_quality;
607 } 609 }
610 if (im_alpha)
611 {
612 start = (unsigned int *) im_data;
613 end = start + (im_w * im_h);
614 while (start < end)
615 {
616 if ((*start & 0xff000000) != 0xff000000)
617 {
618 opaque = EINA_FALSE;
619 break;
620 }
621 start++;
622 }
623 if (opaque) im_alpha = 0;
624 }
608 if (mode == 0) 625 if (mode == 0)
609 bytes = eet_data_image_write(ef, buf, 626 bytes = eet_data_image_write(ef, buf,
610 im_data, im_w, im_h, 627 im_data, im_w, im_h,