add smart callback for comp object damage calls

related to the previous commit, this will allow api users to determine
when a client needs to re-render with the least amount of overhead
This commit is contained in:
Mike Blumenkrantz 2015-09-17 16:46:46 -04:00
parent e01009e1b5
commit 554eb76140
1 changed files with 4 additions and 0 deletions

View File

@ -3085,10 +3085,14 @@ E_API void
e_comp_object_damage(Evas_Object *obj, int x, int y, int w, int h)
{
int tw, th;
Eina_Rectangle rect;
API_ENTRY;
if (cw->ec->input_only || (!cw->updates)) return;
if (cw->nocomp) return;
rect.x = x, rect.y = y;
rect.w = w, rect.h = h;
evas_object_smart_callback_call(obj, "damage", &rect);
if (e_comp->nocomp)
{
cw->nocomp_need_update = EINA_TRUE;