elementary bg: fix to guarantee compatibility.

Summary: This is additional fix to b9b209f60f.

Reviewers: #committers, zmike

Reviewed By: #committers, zmike

Subscribers: cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6727
This commit is contained in:
Hermet Park 2018-08-02 09:08:43 -04:00 committed by Mike Blumenkrantz
parent 1a75537ab8
commit 24f7285c39
1 changed files with 2 additions and 2 deletions

View File

@ -152,14 +152,14 @@ elm_bg_color_set(Evas_Object *obj,
int b)
{
int a = 255;
EFL_UI_BG_WIDGET_CHECK(obj);
EFL_UI_BG_WIDGET_DATA_GET_OR_RETURN(obj, sd);
// reset color
if ((r == -1) && (g == -1) && (b == -1))
{
r = g = b = a = 0;
}
efl_gfx_color_set(obj, r, g, b, a);
efl_gfx_color_set(sd->rect, r, g, b, a);
}
EOLIAN static void