cpu: clear graph with _data_update_add.

This commit is contained in:
Alastair Poole 2020-06-24 14:11:56 +01:00
parent f6a279c4a7
commit 55e172db49
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ graph_clear(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
*(pixels++) = COLOR_BG;
}
}
evas_object_image_pixels_dirty_set(obj, EINA_TRUE);
evas_object_image_data_update_add(obj, 0, 0, w, h);
}
static Eina_Bool
@ -57,7 +57,7 @@ animator(void *data EINA_UNUSED)
if (anim->enabled)
evas_object_show(line);
else
evas_object_hide(line);
evas_object_hide(line);
evas_object_image_size_set(obj, w, h);