summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/image_loaders/png/evas_image_load_png.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/evas/image_loaders/png/evas_image_load_png.c b/src/modules/evas/image_loaders/png/evas_image_load_png.c
index 7b440d5089..1eb8b12dc8 100644
--- a/src/modules/evas/image_loaders/png/evas_image_load_png.c
+++ b/src/modules/evas/image_loaders/png/evas_image_load_png.c
@@ -212,7 +212,14 @@ _evas_image_load_file_internal_head_png(Evas_Loader_Internal *loader,
212 prop->info.w = (int) epi->w32; 212 prop->info.w = (int) epi->w32;
213 prop->info.h = (int) epi->h32; 213 prop->info.h = (int) epi->h32;
214 } 214 }
215 if (png_get_valid(epi->png_ptr, epi->info_ptr, PNG_INFO_tRNS)) epi->hasa = 1; 215
216 if (png_get_valid(epi->png_ptr, epi->info_ptr, PNG_INFO_tRNS))
217 {
218 /* expand transparency entry -> alpha channel if present */
219 if (!close_file) png_set_tRNS_to_alpha(epi->png_ptr);
220 epi->hasa = 1;
221 }
222
216 switch (epi->color_type) 223 switch (epi->color_type)
217 { 224 {
218 case PNG_COLOR_TYPE_RGB_ALPHA: 225 case PNG_COLOR_TYPE_RGB_ALPHA: