aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-07-02 15:41:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-07-02 15:47:25 +0900
commit225b33451b1d659e87233028cc17e2f48e74e797 (patch)
tree6606f544648d304a89f8ae3adb56742c972a3944 /src/lib/evas/canvas/evas_object_image.c
parentEvas.Image: Deprecate some functions and remove from Eo (diff)
downloadefl-225b33451b1d659e87233028cc17e2f48e74e797.tar.gz
Evas.Image: Simplify logic (trivial change)
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index b0d1c054d8..aee6260152 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -1535,15 +1535,15 @@ _evas_image_alpha_set(Eo *eo_obj, Evas_Image_Data *o, Eina_Bool has_alpha)
o->preloading = EINA_FALSE;
ENFN->image_data_preload_cancel(ENDT, o->engine_data, eo_obj);
}
- if (((has_alpha) && (o->cur->has_alpha)) ||
- ((!has_alpha) && (!o->cur->has_alpha)))
+
+ has_alpha = !!has_alpha;
+ if (has_alpha == o->cur->has_alpha)
return;
- if (o->cur->has_alpha != has_alpha)
- {
- EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
- state_write->has_alpha = has_alpha;
- EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
- }
+
+ EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
+ state_write->has_alpha = has_alpha;
+ EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
+
if (o->engine_data)
{
int stride = 0;