From: Changyeon Lee Date: Wed, 10 May 2023 03:05:10 +0000 (+0900) Subject: e_comp_object: do not check r, g, b color when checking visible of object X-Git-Tag: accepted/tizen/unified/20230605.170338~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e808ca5a899cc67b6a90ba7102759d2f695e4912;p=platform%2Fupstream%2Fenlightenment.git e_comp_object: do not check r, g, b color when checking visible of object if alpha is greater than 0 and r, g, b color are zero, object is visible. Change-Id: Id164e094f0be6d468c25f2cc773f4bd0a0740c79 --- diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 6cb7222..595fde5 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -6536,24 +6536,24 @@ EINTERN Eina_Bool e_comp_object_color_visible_get(Evas_Object *obj) { API_ENTRY EINA_FALSE; - int r, g, b, a; + int a; EINA_SAFETY_ON_NULL_RETURN_VAL(cw->ec, EINA_FALSE); - e_comp_object_color_get(obj, &r, &g, &b, &a); - if ((a == 0) || ((r == 0) && (g == 0) && (b == 0))) + e_comp_object_color_get(obj, NULL, NULL, NULL, &a); + if (a <= 0) return EINA_FALSE; - evas_object_color_get(cw->effect_obj, &r, &g, &b, &a); - if ((a == 0) || ((r == 0) && (g == 0) && (b == 0))) + evas_object_color_get(cw->effect_obj, NULL, NULL, NULL, &a); + if (a <= 0) return EINA_FALSE; - evas_object_color_get(cw->shobj, &r, &g, &b, &a); - if ((a == 0) || ((r == 0) && (g == 0) && (b == 0))) + evas_object_color_get(cw->shobj, NULL, NULL, NULL, &a); + if (a <= 0) return EINA_FALSE; - evas_object_color_get(cw->obj, &r, &g, &b, &a); - if ((a == 0) || ((r == 0) && (g == 0) && (b == 0))) + evas_object_color_get(cw->obj, NULL, NULL, NULL, &a); + if (a <= 0) return EINA_FALSE; return EINA_TRUE;