Evas masking: Check only the variable we want to set

This is a left-over from a previous fix a few weeks ago.
The point of this "if" is just to avoid writing the COW value
if not needed.

For reference:
  commit f876cf31f8
  Author: Jean-Philippe Andre <jp.andre@samsung.com>
  Date:   Tue Dec 23 18:57:45 2014 +0900
    Evas masking: Fix invalid geometry after mask redraw
This commit is contained in:
Jean-Philippe Andre 2015-01-27 15:02:27 +09:00
parent 0f32ab49ce
commit 5afa07bf6c
1 changed files with 1 additions and 5 deletions

View File

@ -302,11 +302,7 @@ _evas_mask_redraw_set(Evas_Public_Data *e EINA_UNUSED,
Evas_Object_Protected_Data *clippee;
Eina_List *l;
if (!(obj->mask->redraw &&
obj->mask->x == obj->cur->geometry.x &&
obj->mask->y == obj->cur->geometry.y &&
obj->mask->w == obj->cur->geometry.w &&
obj->mask->h == obj->cur->geometry.h))
if (!(obj->mask->redraw))
{
EINA_COW_WRITE_BEGIN(evas_object_mask_cow, obj->mask,
Evas_Object_Mask_Data, mask)