From 6efed0f7c91eba629c584f39c2a5cab96eadb9ce Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Wed, 26 Jun 2013 09:27:26 +0900 Subject: [PATCH] Update icon provider Alpha option enabled. Change-Id: I5070adffaece2e9c1a6f29cc714f77159aae7c7e --- icon_src/script_handler.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/icon_src/script_handler.c b/icon_src/script_handler.c index 1708220..23ef817 100644 --- a/icon_src/script_handler.c +++ b/icon_src/script_handler.c @@ -515,7 +515,7 @@ static int update_script_image(Evas_Object *edje, struct block *block) if (evas_object_image_region_support_get(img)) { evas_object_image_load_region_set(img, (w - part_w) / 2, (h - part_h) / 2, part_w, part_h); evas_object_image_load_size_set(img, part_w, part_h); - evas_object_image_fill_set(img, 0, 0, part_w, part_h); + evas_object_image_filled_set(img, EINA_TRUE); DbgPrint("Size: %dx%d (region: %dx%d - %dx%d)\n", w, h, (w - part_w) / 2, (h - part_h) / 2, part_w, part_h); } else { Ecore_Evas *ee; @@ -534,6 +534,8 @@ static int update_script_image(Evas_Object *edje, struct block *block) return LB_STATUS_ERROR_FAULT; } + ecore_evas_alpha_set(ee, EINA_TRUE); + e = ecore_evas_get(ee); if (!e) { ErrPrint("Unable to get Evas\n"); @@ -556,6 +558,9 @@ static int update_script_image(Evas_Object *edje, struct block *block) return LB_STATUS_ERROR_FAULT; } + evas_object_image_alpha_set(src_img, EINA_TRUE); + evas_object_image_colorspace_set(src_img, EVAS_COLORSPACE_ARGB8888); + evas_object_image_smooth_scale_set(src_img, EINA_TRUE); evas_object_image_load_orientation_set(src_img, img_opt.orient); evas_object_image_file_set(src_img, block->data, NULL); err = evas_object_image_load_error_get(src_img); -- 2.7.4