rage - ensure art is gone when swithing to a video after art display

This commit is contained in:
Carsten Haitzler 2015-12-13 16:12:24 +09:00
parent bd9af8405b
commit 18b174d822
1 changed files with 2 additions and 1 deletions

View File

@ -292,7 +292,7 @@ _ob_resize(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coor
sd->pih = sd->ih; sd->pih = sd->ih;
evas_object_smart_callback_call(obj, "frame_resize", NULL); evas_object_smart_callback_call(obj, "frame_resize", NULL);
} }
if ((sd->tw > 0) && (sd->th > 0)) if ((sd->tw > 0) && (sd->th > 0) && (sd->doart))
{ {
int iw, ih; int iw, ih;
@ -647,6 +647,7 @@ video_art_set(Evas_Object *obj, Eina_Bool art)
Video *sd = evas_object_smart_data_get(obj); Video *sd = evas_object_smart_data_get(obj);
if (!sd) return; if (!sd) return;
sd->doart = art; sd->doart = art;
if (!sd->doart) evas_object_hide(sd->o_img);
} }
Eina_Bool Eina_Bool