forked from enlightenment/efl
mapbuf: correctly get the viewport size.
This commit is contained in:
parent
e08c1fee5d
commit
749e806ec4
|
@ -144,7 +144,7 @@ _mapbuf_auto_eval(Evas_Object *obj)
|
||||||
|
|
||||||
vis = evas_object_visible_get(obj);
|
vis = evas_object_visible_get(obj);
|
||||||
evas_object_geometry_get(obj, &x, &y, &w, &h);
|
evas_object_geometry_get(obj, &x, &y, &w, &h);
|
||||||
evas_output_viewport_get(obj, &vx, &vy, &vw, &vh);
|
evas_output_viewport_get(evas_object_evas_get(obj), &vx, &vy, &vw, &vh);
|
||||||
if ((vis) && (ELM_RECTS_INTERSECT(x, y, w, h, vx, vy, vw, vh)))
|
if ((vis) && (ELM_RECTS_INTERSECT(x, y, w, h, vx, vy, vw, vh)))
|
||||||
on = EINA_TRUE;
|
on = EINA_TRUE;
|
||||||
elm_mapbuf_enabled_set(obj, on);
|
elm_mapbuf_enabled_set(obj, on);
|
||||||
|
|
Loading…
Reference in New Issue